9
0
Fork 0

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:
Sascha Hauer 2009-10-17 10:04:08 +02:00 committed by Sascha Hauer
parent ac50a05caf
commit d78105a55b
1 changed files with 1 additions and 9 deletions

View File

@ -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);