svn commit: trunk/busybox/miscutils

vda at busybox.net vda at busybox.net
Mon Jun 30 15:48:35 UTC 2008


Author: vda
Date: 2008-06-30 08:48:34 -0700 (Mon, 30 Jun 2008)
New Revision: 22577

Log:
crond: use execlp instead of execl



Modified:
   trunk/busybox/miscutils/crond.c


Changeset:
Modified: trunk/busybox/miscutils/crond.c
===================================================================
--- trunk/busybox/miscutils/crond.c	2008-06-30 15:24:23 UTC (rev 22576)
+++ trunk/busybox/miscutils/crond.c	2008-06-30 15:48:34 UTC (rev 22577)
@@ -788,7 +788,7 @@
 			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);




More information about the busybox-cvs mailing list