svn commit: r295671 - head/usr.sbin/cron/cron
Pedro F. Giffuni
pfg at FreeBSD.org
Tue Feb 16 20:59:50 UTC 2016
Author: pfg
Date: Tue Feb 16 20:59:49 2016
New Revision: 295671
URL: https://svnweb.freebsd.org/changeset/base/295671
Log:
cron: use (char *)NULL instead of (char *)0 in execle.
Obtained from: OpenBSD (CVS Rev 1.25)
Modified:
head/usr.sbin/cron/cron/do_command.c
Modified: head/usr.sbin/cron/cron/do_command.c
==============================================================================
--- head/usr.sbin/cron/cron/do_command.c Tue Feb 16 20:33:18 2016 (r295670)
+++ head/usr.sbin/cron/cron/do_command.c Tue Feb 16 20:59:49 2016 (r295671)
@@ -337,8 +337,9 @@ child_process(e, u)
_exit(OK_EXIT);
}
# endif /*DEBUGGING*/
- execle(shell, shell, "-c", e->cmd, (char *)0, e->envp);
- warn("execl: couldn't exec `%s'", shell);
+ execle(shell, shell, "-c", e->cmd, (char *)NULL,
+ e->envp);
+ warn("execle: couldn't exec `%s'", shell);
_exit(ERROR_EXIT);
}
break;
More information about the svn-src-all
mailing list