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