diff options
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 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) { |