From 3e6eeed0168f4b039335a807642b41e622a99cce Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 31 Mar 2008 21:48:27 +0200 Subject: netboot commands: When downloading a file and no local filename is given, just use the filename as resulting file, not the whole path. --- commands/net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/net.c') diff --git a/commands/net.c b/commands/net.c index 93c6365ef6..87c31681b6 100644 --- a/commands/net.c +++ b/commands/net.c @@ -35,6 +35,7 @@ #include #include #include +#include static int netboot_common (proto_t, cmd_tbl_t *, int , char *[]); @@ -204,7 +205,7 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[]) remotefile = argv[1]; if (argc == 2) - localfile = remotefile; + localfile = basename(remotefile); else localfile = argv[2]; -- cgit v1.2.3