projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ba12b4
)
Switching on fortify was not kind to the pending directory. Fix the actual build...
author
Rob Landley
<rob@landley.net>
Tue, 2 Dec 2014 09:12:58 +0000
(
03:12
-0600)
committer
Rob Landley
<rob@landley.net>
Tue, 2 Dec 2014 09:12:58 +0000
(
03:12
-0600)
toys/pending/dhcpd.c
patch
|
blob
|
history
diff --git
a/toys/pending/dhcpd.c
b/toys/pending/dhcpd.c
index
7da5194
..
2f0c3a5
100644
(file)
--- a/
toys/pending/dhcpd.c
+++ b/
toys/pending/dhcpd.c
@@
-867,7
+867,7
@@
static int write_leasefile(void)
struct arg_list *listdls = gstate.dleases;
dyn_lease *dls;
- if ((fd = open(gconfig.lease_file, O_WRONLY | O_CREAT | O_TRUNC)) < 0) {
+ if ((fd = open(gconfig.lease_file, O_WRONLY | O_CREAT | O_TRUNC
, 0600
)) < 0) {
perror_msg("can't open %s ", gconfig.lease_file);
return fd;
}