Quick fix for tftp truncation bug
This commit is contained in:
parent
d1daf8b6f4
commit
d5d5e54290
@ -528,7 +528,7 @@ int tftp_main(int argc, char **argv)
|
|||||||
#ifdef CONFIG_FEATURE_TFTP_GET
|
#ifdef CONFIG_FEATURE_TFTP_GET
|
||||||
case 'g':
|
case 'g':
|
||||||
cmd = tftp_cmd_get;
|
cmd = tftp_cmd_get;
|
||||||
flags = O_WRONLY | O_CREAT;
|
flags = O_WRONLY | O_CREAT | O_TRUNC;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_FEATURE_TFTP_PUT
|
#ifdef CONFIG_FEATURE_TFTP_PUT
|
||||||
|
Loading…
Reference in New Issue
Block a user