diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-30 15:48:34 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-30 15:48:34 +0000 |
commit | 0a656920487bf844664ca58ce5cef158228490fa (patch) | |
tree | 6dbcb4be69ce31f3b3fe7d38e9a7e7ebb1b5e0d2 | |
parent | c94d3564c2b0584804fd4bab0a03f9160aa39720 (diff) | |
download | busybox-w32-0a656920487bf844664ca58ce5cef158228490fa.tar.gz busybox-w32-0a656920487bf844664ca58ce5cef158228490fa.tar.bz2 busybox-w32-0a656920487bf844664ca58ce5cef158228490fa.zip |
crond: use execlp instead of execl
-rw-r--r-- | miscutils/crond.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 51b09ece0..ecb3a2f80 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -788,7 +788,7 @@ ForkJob(const char *user, CronLine *line, int mailFd, | |||
788 | xmove_fd(mailFd, mail_filename ? 1 : 0); | 788 | xmove_fd(mailFd, mail_filename ? 1 : 0); |
789 | dup2(1, 2); | 789 | dup2(1, 2); |
790 | } | 790 | } |
791 | execl(prog, prog, cmd, arg, NULL); | 791 | execlp(prog, prog, cmd, arg, NULL); |
792 | crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, prog, cmd, arg); | 792 | crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, prog, cmd, arg); |
793 | if (mail_filename) { | 793 | if (mail_filename) { |
794 | fdprintf(1, "Exec failed: %s -c %s\n", prog, arg); | 794 | fdprintf(1, "Exec failed: %s -c %s\n", prog, arg); |