projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a40651
)
Patch from Jeff Studer <jstuder@aquilagroup.com> to supply a defaults for
author
Eric Andersen
<andersen@codepoet.org>
Wed, 20 Mar 2002 14:25:27 +0000
(14:25 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Wed, 20 Mar 2002 14:25:27 +0000
(14:25 -0000)
localfilename from remotefilename, and for remotefilename from localfilename
when the other one is not supplied.
networking/tftp.c
patch
|
blob
|
history
diff --git
a/networking/tftp.c
b/networking/tftp.c
index
1e5dddb
..
c037764
100644
(file)
--- a/
networking/tftp.c
+++ b/
networking/tftp.c
@@
-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) {