summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorGlenn L McGrath2004-02-26 07:47:20 +0000
committerGlenn L McGrath2004-02-26 07:47:20 +0000
commitd5d5e54290d87922679808f1b49309ec9b9f33b1 (patch)
tree2a325afd5d099f706e6c9bd15c9842c3211512ee /networking
parentd1daf8b6f4d96cceffb1463967dc3ab359341dff (diff)
downloadbusybox-d5d5e54290d87922679808f1b49309ec9b9f33b1.zip
busybox-d5d5e54290d87922679808f1b49309ec9b9f33b1.tar.gz
Quick fix for tftp truncation bug
Diffstat (limited to 'networking')
-rw-r--r--networking/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index f00b64b..92966a2 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -528,7 +528,7 @@ int tftp_main(int argc, char **argv)
#ifdef CONFIG_FEATURE_TFTP_GET
case 'g':
cmd = tftp_cmd_get;
- flags = O_WRONLY | O_CREAT;
+ flags = O_WRONLY | O_CREAT | O_TRUNC;
break;
#endif
#ifdef CONFIG_FEATURE_TFTP_PUT