lkml.org 
[lkml]   [1996]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectFix for problem in nfsroot
Date
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


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.021 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site