summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2008-02-18 18:35:53 +0000
committerBernhard Reutner-Fischer2008-02-18 18:35:53 +0000
commit27dd495b98a6135554b1d839fefe436ba3c6ca71 (patch)
treea45255310be927b5790751ffd1ddcc96716f55b2
parentb4133683a46303c624b42e2cf8515e54dfdd87be (diff)
downloadbusybox-27dd495b98a6135554b1d839fefe436ba3c6ca71.zip
busybox-27dd495b98a6135554b1d839fefe436ba3c6ca71.tar.gz
- fix open(creat) without a mode
-rw-r--r--miscutils/crontab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index 6b68964..cb261ed 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -214,7 +214,7 @@ int crontab_main(int argc, char **argv)
/* Bump notification file. Handle window where crond picks file up
* before we can write our entry out.
*/
- while ((fd = open(CRONUPDATE, O_WRONLY|O_CREAT|O_APPEND)) >= 0) {
+ while ((fd = open(CRONUPDATE, O_WRONLY|O_CREAT|O_APPEND, 0600)) >= 0) {
struct stat st;
fdprintf(fd, "%s\n", pas->pw_name);