Date: Tue, 16 Feb 2016 20:59:49 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r295671 - head/usr.sbin/cron/cron Message-ID: <201602162059.u1GKxnZS042415@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602162059.u1GKxnZS042415>