Fix for handling of "tftp -l -" from Jean Wolter <jw5@os.inf.tu-dresden.de>

This commit is contained in:
Eric Andersen 2002-09-10 06:03:31 +00:00
parent 2a1eb31f18
commit 7829b8d067

View 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;