diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crond.c | 10 | ||||
-rw-r--r-- | miscutils/crontab.c | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index b18e27489..fa7964e4e 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -654,7 +654,7 @@ static void SynchronizeDir(void) | |||
654 | 654 | ||
655 | remove(CRONUPDATE); | 655 | remove(CRONUPDATE); |
656 | if (chdir(CDir) < 0) { | 656 | if (chdir(CDir) < 0) { |
657 | crondlog("\311unable to find %s\n", CDir); | 657 | crondlog("\311cannot find %s\n", CDir); |
658 | } | 658 | } |
659 | { | 659 | { |
660 | DIR *dir = opendir("."); | 660 | DIR *dir = opendir("."); |
@@ -673,7 +673,7 @@ static void SynchronizeDir(void) | |||
673 | } | 673 | } |
674 | closedir(dir); | 674 | closedir(dir); |
675 | } else { | 675 | } else { |
676 | crondlog("\311Unable to open current dir!\n"); | 676 | crondlog("\311cannot open current dir!\n"); |
677 | } | 677 | } |
678 | } | 678 | } |
679 | } | 679 | } |
@@ -876,7 +876,7 @@ ForkJob(const char *user, CronLine * line, int mailFd, | |||
876 | close(mailFd); | 876 | close(mailFd); |
877 | } | 877 | } |
878 | execl(prog, prog, cmd, arg, NULL); | 878 | execl(prog, prog, cmd, arg, NULL); |
879 | crondlog("\024unable to exec, user %s cmd %s %s %s\n", user, prog, cmd, arg); | 879 | crondlog("\024cannot exec, user %s cmd %s %s %s\n", user, prog, cmd, arg); |
880 | if (mailf) { | 880 | if (mailf) { |
881 | fdprintf(1, "Exec failed: %s -c %s\n", prog, arg); | 881 | fdprintf(1, "Exec failed: %s -c %s\n", prog, arg); |
882 | } | 882 | } |
@@ -926,7 +926,7 @@ static void RunJob(const char *user, CronLine * line) | |||
926 | line->cl_Shell); | 926 | line->cl_Shell); |
927 | line->cl_MailPos = lseek(mailFd, 0, SEEK_CUR); | 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("\024cannot create mail file user %s file %s, output to /dev/null\n", user, mailFile); |
930 | } | 930 | } |
931 | 931 | ||
932 | ForkJob(user, line, mailFd, DEFAULT_SHELL, "-c", line->cl_Shell, mailFile); | 932 | ForkJob(user, line, mailFd, DEFAULT_SHELL, "-c", line->cl_Shell, mailFile); |
@@ -1003,7 +1003,7 @@ static void RunJob(const char *user, CronLine * line) | |||
1003 | #endif | 1003 | #endif |
1004 | 1004 | ||
1005 | execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL); | 1005 | execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL); |
1006 | crondlog("\024unable to exec, user %s cmd %s -c %s\n", user, | 1006 | crondlog("\024cannot exec, user %s cmd %s -c %s\n", user, |
1007 | DEFAULT_SHELL, line->cl_Shell); | 1007 | DEFAULT_SHELL, line->cl_Shell); |
1008 | exit(0); | 1008 | exit(0); |
1009 | } else if (pid < 0) { | 1009 | } else if (pid < 0) { |
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 6ae1b020c..743ac74ae 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c | |||
@@ -126,7 +126,7 @@ int crontab_main(int ac, char **av) | |||
126 | if (repFile) { | 126 | if (repFile) { |
127 | repFd = GetReplaceStream(caller, repFile); | 127 | repFd = GetReplaceStream(caller, repFile); |
128 | if (repFd < 0) | 128 | if (repFd < 0) |
129 | bb_error_msg_and_die("unable to read replacement file"); | 129 | bb_error_msg_and_die("cannot read replacement file"); |
130 | } | 130 | } |
131 | 131 | ||
132 | /* | 132 | /* |
@@ -191,7 +191,7 @@ int crontab_main(int ac, char **av) | |||
191 | close(fd); | 191 | close(fd); |
192 | rename(path, pas->pw_name); | 192 | rename(path, pas->pw_name); |
193 | } else { | 193 | } else { |
194 | bb_error_msg("unable to create %s/%s", CDir, path); | 194 | bb_error_msg("cannot create %s/%s", CDir, path); |
195 | } | 195 | } |
196 | close(repFd); | 196 | close(repFd); |
197 | } | 197 | } |
@@ -224,7 +224,7 @@ int crontab_main(int ac, char **av) | |||
224 | /* loop */ | 224 | /* loop */ |
225 | } | 225 | } |
226 | if (fo == NULL) { | 226 | if (fo == NULL) { |
227 | bb_error_msg("unable to append to %s/%s", CDir, CRONUPDATE); | 227 | bb_error_msg("cannot append to %s/%s", CDir, CRONUPDATE); |
228 | } | 228 | } |
229 | } | 229 | } |
230 | return 0; | 230 | return 0; |