[BusyBox-cvs] busybox/networking tftp.c,1.23,1.24

Glenn McGrath bug1 at busybox.net
Thu Feb 26 07:47:23 UTC 2004


Update of /var/cvs/busybox/networking
In directory nail:/tmp/cvs-serv7815/networking

Modified Files:
	tftp.c 
Log Message:
Quick fix for tftp truncation bug


Index: tftp.c
===================================================================
RCS file: /var/cvs/busybox/networking/tftp.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- a/tftp.c	22 Feb 2004 07:20:25 -0000	1.23
+++ b/tftp.c	26 Feb 2004 07:47:20 -0000	1.24
@@ -528,7 +528,7 @@
 #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




More information about the busybox-cvs mailing list