From: Glenn L McGrath Date: Thu, 26 Feb 2004 07:47:20 +0000 (-0000) Subject: Quick fix for tftp truncation bug X-Git-Tag: 1_00_pre9~100 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d5d5e54290d87922679808f1b49309ec9b9f33b1;p=oweals%2Fbusybox.git Quick fix for tftp truncation bug --- diff --git a/networking/tftp.c b/networking/tftp.c index f00b64bf2..92966a253 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