From d78105a55bc762f54400dc6bf6ae2cf8aa216d96 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sat, 17 Oct 2009 10:04:08 +0200 Subject: [PATCH] nfs: allow only serverip Do not allow to pass serverip via commandline. Signed-off-by: Sascha Hauer --- net/nfs.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/net/nfs.c b/net/nfs.c index da80c2216..33063d7f6 100644 --- a/net/nfs.c +++ b/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);