aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-18 22:04:09 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-18 22:04:09 +0000
commit89f0b3486dfea233e6000f9af95b39a3ea7fd96e (patch)
treefc0d65e0d33b5b526b0d44d4c4da8143be3b53b1 /miscutils
parent61126ab30a90b74e45a79ccb97074ab71afa6054 (diff)
downloadbusybox-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.tar.gz
rodata cleanup. "unable to" == "cannot". -300 bytes
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/crond.c10
-rw-r--r--miscutils/crontab.c6
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)
remove(CRONUPDATE);
if (chdir(CDir) < 0) {
- crondlog("\311unable to find %s\n", CDir);
+ crondlog("\311cannot find %s\n", CDir);
}
{
DIR *dir = opendir(".");
@@ -673,7 +673,7 @@ static void SynchronizeDir(void)
}
closedir(dir);
} else {
- crondlog("\311Unable to open current dir!\n");
+ crondlog("\311cannot open current dir!\n");
}
}
}
@@ -876,7 +876,7 @@ ForkJob(const char *user, CronLine * line, int mailFd,
close(mailFd);
}
execl(prog, prog, cmd, arg, NULL);
- crondlog("\024unable to exec, user %s cmd %s %s %s\n", user, prog, cmd, arg);
+ crondlog("\024cannot exec, user %s cmd %s %s %s\n", user, prog, cmd, arg);
if (mailf) {
fdprintf(1, "Exec failed: %s -c %s\n", prog, arg);
}
@@ -926,7 +926,7 @@ static void RunJob(const char *user, CronLine * line)
line->cl_Shell);
line->cl_MailPos = lseek(mailFd, 0, SEEK_CUR);
} else {
- crondlog("\024unable to create mail file user %s file %s, output to /dev/null\n", user, mailFile);
+ crondlog("\024cannot create mail file user %s file %s, output to /dev/null\n", user, mailFile);
}
ForkJob(user, line, mailFd, DEFAULT_SHELL, "-c", line->cl_Shell, mailFile);
@@ -1003,7 +1003,7 @@ static void RunJob(const char *user, CronLine * line)
#endif
execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL);
- crondlog("\024unable to exec, user %s cmd %s -c %s\n", user,
+ crondlog("\024cannot exec, user %s cmd %s -c %s\n", user,
DEFAULT_SHELL, line->cl_Shell);
exit(0);
} 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)
if (repFile) {
repFd = GetReplaceStream(caller, repFile);
if (repFd < 0)
- bb_error_msg_and_die("unable to read replacement file");
+ bb_error_msg_and_die("cannot read replacement file");
}
/*
@@ -191,7 +191,7 @@ int crontab_main(int ac, char **av)
close(fd);
rename(path, pas->pw_name);
} else {
- bb_error_msg("unable to create %s/%s", CDir, path);
+ bb_error_msg("cannot create %s/%s", CDir, path);
}
close(repFd);
}
@@ -224,7 +224,7 @@ int crontab_main(int ac, char **av)
/* loop */
}
if (fo == NULL) {
- bb_error_msg("unable to append to %s/%s", CDir, CRONUPDATE);
+ bb_error_msg("cannot append to %s/%s", CDir, CRONUPDATE);
}
}
return 0;