aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-05 15:50:56 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-05 15:50:56 +0000
commitd0c41a851997c62c1ad24e76114f7007ff689d48 (patch)
tree7185ae64e76bbd96a1457588328ef3d53750ce6e /miscutils/crond.c
parentf087480da192dcae6977bd373ca617abd2b3b200 (diff)
downloadbusybox-w32-d0c41a851997c62c1ad24e76114f7007ff689d48.tar.gz
busybox-w32-d0c41a851997c62c1ad24e76114f7007ff689d48.tar.bz2
busybox-w32-d0c41a851997c62c1ad24e76114f7007ff689d48.zip
destroy bug [0000381]
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 257632f8f..eea34b963 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -132,7 +132,7 @@ static void crondlog(const char *ctl, ...)
132 if (LogFile == 0) { 132 if (LogFile == 0) {
133 vsyslog(type, fmt, va); 133 vsyslog(type, fmt, va);
134 } else { 134 } else {
135 int logfd = open(LogFile, O_WRONLY | O_CREAT | O_APPEND, 600); 135 int logfd = open(LogFile, O_WRONLY | O_CREAT | O_APPEND, 0600);
136 if (logfd >= 0) { 136 if (logfd >= 0) {
137 vdprintf(logfd, fmt, va); 137 vdprintf(logfd, fmt, va);
138 close(logfd); 138 close(logfd);
@@ -348,7 +348,7 @@ static void startlogger(void)
348 else { /* test logfile */ 348 else { /* test logfile */
349 int logfd; 349 int logfd;
350 350
351 if ((logfd = open(LogFile, O_WRONLY | O_CREAT | O_APPEND, 600)) >= 0) { 351 if ((logfd = open(LogFile, O_WRONLY | O_CREAT | O_APPEND, 0600)) >= 0) {
352 close(logfd); 352 close(logfd);
353 } else { 353 } else {
354 bb_perror_msg("Failed to open log file '%s' reason", LogFile); 354 bb_perror_msg("Failed to open log file '%s' reason", LogFile);