Fix for problem in nfsroot

Leo Spiekman (spiekman@dutette.et.tudelft.nl)
Wed, 22 May 1996 17:39:45 +0200 (METDST)


Dear Linus and others,

There is a problem in the logic of nfsroot, that prevents a root
path that has been received with bootp to be used. It can be fixed
by removing one '!' operator on line 1082 of fs/nfs/nfsroot.c. The patch:

======================================================
diff -u -r -N v1.99.7o/linux/fs/nfs/nfsroot.c linux/fs/nfs/nfsroot.c
--- v1.99.7o/linux/fs/nfs/nfsroot.c Wed May 22 17:19:31 1996
+++ linux/fs/nfs/nfsroot.c Thu May 16 15:35:42 1996
@@ -1079,7 +1079,7 @@
sizeof(nfs_data.hostname)-1);

/* Set the name of the directory to mount */
- if (nfs_path[0] == '\0' || !strncmp(name, "default", 7))
+ if (nfs_path[0] == '\0' || strncmp(name, "default", 7))
strncpy(buf, name, NFS_MAXPATHLEN);
else
strncpy(buf, nfs_path, NFS_MAXPATHLEN);
======================================================

-- 
Leo Spiekman   spiekman@et.tudelft.nl   http://dutettk.et.tudelft.nl/~spiekman