nfs: allow only serverip
Do not allow to pass serverip via commandline. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
This commit is contained in:
parent
ac50a05caf
commit
d78105a55b
10
net/nfs.c
10
net/nfs.c
|
@ -664,15 +664,7 @@ NfsStart (char *p)
|
|||
return;
|
||||
}
|
||||
|
||||
p = strchr (p, ':');
|
||||
|
||||
if (p != NULL) {
|
||||
string_to_ip (BootFile, &NfsServerIP);
|
||||
++p;
|
||||
strcpy (nfs_path, p);
|
||||
} else {
|
||||
strcpy (nfs_path, BootFile);
|
||||
}
|
||||
strcpy (nfs_path, p);
|
||||
|
||||
nfs_filename = basename (nfs_path);
|
||||
nfs_path = dirname (nfs_path);
|
||||
|
|
Loading…
Reference in New Issue