diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-02-18 18:35:53 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-02-18 18:35:53 +0000 |
commit | 27dd495b98a6135554b1d839fefe436ba3c6ca71 (patch) | |
tree | a45255310be927b5790751ffd1ddcc96716f55b2 | |
parent | b4133683a46303c624b42e2cf8515e54dfdd87be (diff) | |
download | busybox-w32-27dd495b98a6135554b1d839fefe436ba3c6ca71.tar.gz busybox-w32-27dd495b98a6135554b1d839fefe436ba3c6ca71.tar.bz2 busybox-w32-27dd495b98a6135554b1d839fefe436ba3c6ca71.zip |
- fix open(creat) without a mode
-rw-r--r-- | miscutils/crontab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 6b6896469..cb261ed18 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c | |||
@@ -214,7 +214,7 @@ int crontab_main(int argc, char **argv) | |||
214 | /* Bump notification file. Handle window where crond picks file up | 214 | /* Bump notification file. Handle window where crond picks file up |
215 | * before we can write our entry out. | 215 | * before we can write our entry out. |
216 | */ | 216 | */ |
217 | while ((fd = open(CRONUPDATE, O_WRONLY|O_CREAT|O_APPEND)) >= 0) { | 217 | while ((fd = open(CRONUPDATE, O_WRONLY|O_CREAT|O_APPEND, 0600)) >= 0) { |
218 | struct stat st; | 218 | struct stat st; |
219 | 219 | ||
220 | fdprintf(fd, "%s\n", pas->pw_name); | 220 | fdprintf(fd, "%s\n", pas->pw_name); |