[PATCH 4/5] crond: replace execlp calls with BB_EXECLP
Nadav Tasher
tashernadav at gmail.com
Thu Dec 19 21:10:06 UTC 2024
Signed-off-by: Nadav Tasher <tashernadav at gmail.com>
---
miscutils/crond.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/miscutils/crond.c b/miscutils/crond.c
index b3762d327..efb420767 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -726,9 +726,9 @@ fork_job(const char *user, int mailFd, CronLine *line, bool run_sendmail)
/* crond 3.0pl1-100 puts tasks in separate process groups */
bb_setpgrp();
if (!run_sendmail)
- execlp(prog, prog, "-c", line->cl_cmd, (char *) NULL);
+ BB_EXECLP(prog, prog, "-c", line->cl_cmd, (char *) NULL);
else
- execlp(prog, prog, SENDMAIL_ARGS, (char *) NULL);
+ BB_EXECLP(prog, prog, SENDMAIL_ARGS, (char *) NULL);
/*
* I want this error message on stderr too,
* even if other messages go only to syslog:
--
2.34.1
More information about the busybox
mailing list