aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 767aa120a..2e158bcf0 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -142,7 +142,7 @@ static void crondlog(const char *ctl, ...)
142 /* Syslog mode: all to syslog (logmode = LOGMODE_SYSLOG), */ 142 /* Syslog mode: all to syslog (logmode = LOGMODE_SYSLOG), */
143 if (!DebugOpt && LogFile) { 143 if (!DebugOpt && LogFile) {
144 /* Otherwise (log to file): we reopen log file at every write: */ 144 /* Otherwise (log to file): we reopen log file at every write: */
145 int logfd = open3_or_warn(LogFile, O_WRONLY | O_CREAT | O_APPEND, 0600); 145 int logfd = open3_or_warn(LogFile, O_WRONLY | O_CREAT | O_APPEND, 0666);
146 if (logfd >= 0) 146 if (logfd >= 0)
147 xmove_fd(logfd, STDERR_FILENO); 147 xmove_fd(logfd, STDERR_FILENO);
148 } 148 }