Fix for handling of "tftp -l -" from Jean Wolter <jw5@os.inf.tu-dresden.de>
This commit is contained in:
parent
2a1eb31f18
commit
7829b8d067
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user