diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crond.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index fddddcd8c..7f2d54c9f 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -123,7 +123,7 @@ static void crondlog(const char *ctl, ...) | |||
123 | /* Syslog mode: all to syslog (logmode = LOGMODE_SYSLOG), */ | 123 | /* Syslog mode: all to syslog (logmode = LOGMODE_SYSLOG), */ |
124 | if (!DebugOpt && G.log_filename) { | 124 | if (!DebugOpt && G.log_filename) { |
125 | /* Otherwise (log to file): we reopen log file at every write: */ | 125 | /* Otherwise (log to file): we reopen log file at every write: */ |
126 | int logfd = open3_or_warn(G.log_filename, O_WRONLY | O_CREAT | O_APPEND, 0666); | 126 | int logfd = open_or_warn(G.log_filename, O_WRONLY | O_CREAT | O_APPEND); |
127 | if (logfd >= 0) | 127 | if (logfd >= 0) |
128 | xmove_fd(logfd, STDERR_FILENO); | 128 | xmove_fd(logfd, STDERR_FILENO); |
129 | } | 129 | } |