projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40e7d25
)
tftpd: fix file creation with bogus mode. Closes bug 1021.
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 2 Feb 2010 00:01:40 +0000
(
01:01
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 2 Feb 2010 00:01:40 +0000
(
01:01
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tftp.c
patch
|
blob
|
history
diff --git
a/networking/tftp.c
b/networking/tftp.c
index 8d6038853a3018ee5678c3b8e729756ce225d4e0..b2c3c033c283e4b02f8906ff50bc40b8158cb374 100644
(file)
--- 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");