summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2002-09-10 06:03:31 +0000
committerEric Andersen2002-09-10 06:03:31 +0000
commit7829b8d067225e6ab90ba289b2c9375349204acd (patch)
tree7a6a2a147b87e867d7c59d6f7690c6e227073df4
parent2a1eb31f18f5a185d43760bf504249a66a26fe4d (diff)
downloadbusybox-7829b8d067225e6ab90ba289b2c9375349204acd.zip
busybox-7829b8d067225e6ab90ba289b2c9375349204acd.tar.gz
Fix for handling of "tftp -l -" from Jean Wolter <jw5@os.inf.tu-dresden.de>
-rw-r--r--networking/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index ec30725..1ca3e41 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -549,7 +549,7 @@ int tftp_main(int argc, char **argv)
show_usage();
}
if(localfile && strcmp(localfile, "-") == 0) {
- fd = fileno((cmd==tftp_cmd_get)? stdin : stdout);
+ fd = fileno((cmd==tftp_cmd_get)? stdout : stdin);
}
if(localfile == NULL)
localfile = remotefile;