From: Denis Vlasenko Date: Mon, 30 Jun 2008 15:48:34 +0000 (-0000) Subject: crond: use execlp instead of execl X-Git-Tag: 1_12_0~262 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a656920487bf844664ca58ce5cef158228490fa;p=oweals%2Fbusybox.git crond: use execlp instead of execl --- 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, xmove_fd(mailFd, mail_filename ? 1 : 0); dup2(1, 2); } - execl(prog, prog, cmd, arg, NULL); + execlp(prog, prog, cmd, arg, NULL); crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, prog, cmd, arg); if (mail_filename) { fdprintf(1, "Exec failed: %s -c %s\n", prog, arg);