From 7829b8d067225e6ab90ba289b2c9375349204acd Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 10 Sep 2002 06:03:31 +0000 Subject: Fix for handling of "tftp -l -" from Jean Wolter --- networking/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking') 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; -- cgit v1.1