From: Eric Andersen Date: Tue, 10 Sep 2002 06:03:31 +0000 (-0000) Subject: Fix for handling of "tftp -l -" from Jean Wolter X-Git-Tag: 0_60_4~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7829b8d067225e6ab90ba289b2c9375349204acd;p=platform%2Fupstream%2Fbusybox.git Fix for handling of "tftp -l -" from Jean Wolter --- 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;