[git commit master] tftpd: fix file creation with bogus mode. Closes bug 1021.
Denys Vlasenko
vda.linux at googlemail.com
Tue Feb 2 00:01:40 UTC 2010
commit: http://git.busybox.net/busybox/commit/?id=4b061461d3f5cb62a6f384d80fd5a3f6be51bd25
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/tftp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/networking/tftp.c b/networking/tftp.c
index 8d60388..b2c3c03 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -308,7 +308,7 @@ static int tftp_protocol(
if (!ENABLE_TFTP || our_lsa) { /* tftpd */
/* Open file (must be after changing user) */
- local_fd = open(local_file, open_mode);
+ local_fd = open(local_file, open_mode, 0666);
if (local_fd < 0) {
error_pkt_reason = ERR_NOFILE;
strcpy((char*)error_pkt_str, "can't open file");
--
1.6.3.3
More information about the busybox-cvs
mailing list