diff options
author | pfg <pfg@FreeBSD.org> | 2016-02-16 20:59:49 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-02-16 20:59:49 +0000 |
commit | 635e3c1e65d7b2322216e019962be05e7041bd64 (patch) | |
tree | afed4ece943b5b0d0533da334c38bee573977017 | |
parent | 8d5a88a7e3e7c558ab1285cea65ec2c70ad974da (diff) | |
download | FreeBSD-src-635e3c1e65d7b2322216e019962be05e7041bd64.zip FreeBSD-src-635e3c1e65d7b2322216e019962be05e7041bd64.tar.gz |
cron: use (char *)NULL instead of (char *)0 in execle.
Obtained from: OpenBSD (CVS Rev 1.25)
-rw-r--r-- | usr.sbin/cron/cron/do_command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/cron/cron/do_command.c b/usr.sbin/cron/cron/do_command.c index 7a7ac57..4d7c1f4 100644 --- a/usr.sbin/cron/cron/do_command.c +++ b/usr.sbin/cron/cron/do_command.c @@ -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; |