aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-14 02:23:43 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-14 02:23:43 +0000
commitea62077b850076c4d7dc3cf78ebd1888928c6ddf (patch)
tree37b7584ae40b99edb5583fbc4392b62ffdadf278 /miscutils/crond.c
parent88ca06769028e442bf873b270c176ca0e9f021f8 (diff)
downloadbusybox-w32-ea62077b850076c4d7dc3cf78ebd1888928c6ddf.tar.gz
busybox-w32-ea62077b850076c4d7dc3cf78ebd1888928c6ddf.tar.bz2
busybox-w32-ea62077b850076c4d7dc3cf78ebd1888928c6ddf.zip
add open_read_close() and similar stuff
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 623e8c359..eaed1ea69 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -120,7 +120,7 @@ static void crondlog(const char *ctl, ...)
120 close(logfd); 120 close(logfd);
121#if ENABLE_DEBUG_CROND_OPTION 121#if ENABLE_DEBUG_CROND_OPTION
122 } else { 122 } else {
123 bb_perror_msg("Can't open log file"); 123 bb_perror_msg("can't open log file");
124#endif 124#endif
125 } 125 }
126 } 126 }
@@ -924,7 +924,7 @@ static void RunJob(const char *user, CronLine * line)
924 line->cl_MailFlag = 1; 924 line->cl_MailFlag = 1;
925 fdprintf(mailFd, "To: %s\nSubject: cron: %s\n\n", user, 925 fdprintf(mailFd, "To: %s\nSubject: cron: %s\n\n", user,
926 line->cl_Shell); 926 line->cl_Shell);
927 line->cl_MailPos = lseek(mailFd, 0, 1); 927 line->cl_MailPos = lseek(mailFd, 0, SEEK_CUR);
928 } else { 928 } else {
929 crondlog("\024unable to create mail file user %s file %s, output to /dev/null\n", user, mailFile); 929 crondlog("\024unable to create mail file user %s file %s, output to /dev/null\n", user, mailFile);
930 } 930 }