svn commit: trunk/busybox/miscutils

aldot at busybox.net aldot at busybox.net
Mon Feb 18 18:35:54 UTC 2008


Author: aldot
Date: 2008-02-18 10:35:53 -0800 (Mon, 18 Feb 2008)
New Revision: 21053

Log:
- fix open(creat) without a mode


Modified:
   trunk/busybox/miscutils/crontab.c


Changeset:
Modified: trunk/busybox/miscutils/crontab.c
===================================================================
--- trunk/busybox/miscutils/crontab.c	2008-02-18 14:30:59 UTC (rev 21052)
+++ trunk/busybox/miscutils/crontab.c	2008-02-18 18:35:53 UTC (rev 21053)
@@ -214,7 +214,7 @@
 	/* 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);




More information about the busybox-cvs mailing list