Fix for handling of "tftp -l -" from Jean Wolter <jw5@os.inf.tu-dresden.de>
authorEric Andersen <andersen@codepoet.org>
Tue, 10 Sep 2002 06:03:31 +0000 (06:03 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 10 Sep 2002 06:03:31 +0000 (06:03 -0000)
networking/tftp.c

index ec30725..1ca3e41 100644 (file)
@@ -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;