X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=miscutils%2Fcrond.c;h=7f2d54c9f305acfe85604d8843e4fa48b77774db;hb=2c3b71a0d2e6e94d8fb75c6879b1b8203cea9e5a;hp=66110bb853873436bf24f2609e4b4c90785bd8c9;hpb=69d69e2cb898f77827d2cf2c06a7f6fcd5157567;p=oweals%2Fbusybox.git diff --git a/miscutils/crond.c b/miscutils/crond.c index 66110bb85..7f2d54c9f 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -8,7 +8,7 @@ * (version 2.3.2) * Vladimir Oleynik (C) 2002 * - * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. + * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ #include "libbb.h" @@ -123,7 +123,7 @@ static void crondlog(const char *ctl, ...) /* Syslog mode: all to syslog (logmode = LOGMODE_SYSLOG), */ if (!DebugOpt && G.log_filename) { /* Otherwise (log to file): we reopen log file at every write: */ - int logfd = open3_or_warn(G.log_filename, O_WRONLY | O_CREAT | O_APPEND, 0666); + int logfd = open_or_warn(G.log_filename, O_WRONLY | O_CREAT | O_APPEND); if (logfd >= 0) xmove_fd(logfd, STDERR_FILENO); } @@ -243,7 +243,6 @@ static void ParseField(char *user, char *ary, int modvalue, int off, goto err; } } while (n1 != n2); - } if (*ptr != ',') { break;