diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
commit | cad5364599eb5062d59e0c397ed638ddd61a8d5d (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /miscutils/crond.c | |
parent | e01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff) | |
download | busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.bz2 busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip |
Major coreutils update.
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 8ae54a536..cbb4ffc58 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -154,7 +154,7 @@ crond_main(int ac, char **av) | |||
154 | if (*optarg != 0) CDir = optarg; | 154 | if (*optarg != 0) CDir = optarg; |
155 | break; | 155 | break; |
156 | default: /* parse error */ | 156 | default: /* parse error */ |
157 | show_usage(); | 157 | bb_show_usage(); |
158 | } | 158 | } |
159 | } | 159 | } |
160 | 160 | ||
@@ -163,7 +163,7 @@ crond_main(int ac, char **av) | |||
163 | */ | 163 | */ |
164 | 164 | ||
165 | if (chdir(CDir) != 0) | 165 | if (chdir(CDir) != 0) |
166 | perror_msg_and_die("chdir"); | 166 | bb_perror_msg_and_die("chdir"); |
167 | 167 | ||
168 | /* | 168 | /* |
169 | * close stdin and stdout, stderr. | 169 | * close stdin and stdout, stderr. |
@@ -173,7 +173,7 @@ crond_main(int ac, char **av) | |||
173 | 173 | ||
174 | if (ForegroundOpt == 0) { | 174 | if (ForegroundOpt == 0) { |
175 | if(daemon(1, 0) < 0) | 175 | if(daemon(1, 0) < 0) |
176 | perror_msg_and_die("daemon"); | 176 | bb_perror_msg_and_die("daemon"); |
177 | } | 177 | } |
178 | 178 | ||
179 | (void)startlogger(); /* need if syslog mode selected */ | 179 | (void)startlogger(); /* need if syslog mode selected */ |
@@ -268,7 +268,7 @@ vlog(int level, int MLOG_LEVEL, const char *ctl, va_list va) | |||
268 | close(logfd); | 268 | close(logfd); |
269 | } else | 269 | } else |
270 | #ifdef FEATURE_DEBUG_OPT | 270 | #ifdef FEATURE_DEBUG_OPT |
271 | perror_msg("Can't open log file") | 271 | bb_perror_msg("Can't open log file") |
272 | #endif | 272 | #endif |
273 | ; | 273 | ; |
274 | } | 274 | } |
@@ -385,7 +385,7 @@ startlogger(void) | |||
385 | int logfd; | 385 | int logfd; |
386 | 386 | ||
387 | if (LoggerOpt == 0) | 387 | if (LoggerOpt == 0) |
388 | openlog(applet_name, LOG_CONS|LOG_PID,LOG_CRON); | 388 | openlog(bb_applet_name, LOG_CONS|LOG_PID,LOG_CRON); |
389 | 389 | ||
390 | else { /* test logfile */ | 390 | else { /* test logfile */ |
391 | if ((logfd = open(LogFile,O_WRONLY|O_CREAT|O_APPEND,600)) >= 0) | 391 | if ((logfd = open(LogFile,O_WRONLY|O_CREAT|O_APPEND,600)) >= 0) |