[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    svn commit: trunk/busybox/miscutils
From:       vda () busybox ! net (vda at busybox ! net)
Date:       2008-06-30 15:48:35
Message-ID: 20080630154835.415463C61F () busybox ! net
[Download RAW message or body]

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);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic