← Commit list

900c24dc4

Eric Andersen
Eric Andersen
2002-03-20
FAILED Duration: 307s

Subject

Patch from Jeff Studer to supply a defaults for localfilename from remotefilename, and for remotefilename from localfilename when the other one is not supplied.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/tftp.c+7 -0
@@ -548,6 +548,13 @@ int tftp_main(int argc, char **argv)
if ((cmd == 0) || (optind == argc)) {
show_usage();
}
+ if(cmd == tftp_cmd_get)
+ if(localfile == NULL)
+ localfile = remotefile;
+
+ if(cmd == tftp_cmd_put)
+ if(remotefile == NULL)
+ remotefile = localfile;
fd = open(localfile, flags, 0644);
if (fd < 0) {