diff options
| author | 2003-07-30 20:20:01 +0000 | |
|---|---|---|
| committer | 2003-07-30 20:20:01 +0000 | |
| commit | cce75673149994474c5dacc105ee650af82beb1c (patch) | |
| tree | 33e1d574dceb09571cba17ae2739d1cd3e7b0c96 /usr.sbin/cron/do_command.c | |
| parent | Experimental support for ICH5/ICH5R SATA, inspired from FreeBSD (diff) | |
| download | wireguard-openbsd-cce75673149994474c5dacc105ee650af82beb1c.tar.xz wireguard-openbsd-cce75673149994474c5dacc105ee650af82beb1c.zip | |
Use (char *)NULL instead of (char *)0 in execl and execle; Andrey Matveev
Diffstat (limited to 'usr.sbin/cron/do_command.c')
| -rw-r--r-- | usr.sbin/cron/do_command.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/cron/do_command.c b/usr.sbin/cron/do_command.c index 1f489db62cd..c8545745fde 100644 --- a/usr.sbin/cron/do_command.c +++ b/usr.sbin/cron/do_command.c @@ -1,4 +1,4 @@ -/* $OpenBSD: do_command.c,v 1.24 2003/04/14 15:58:13 millert Exp $ */ +/* $OpenBSD: do_command.c,v 1.25 2003/07/30 20:20:01 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ */ #if !defined(lint) && !defined(LINT) -static char const rcsid[] = "$OpenBSD: do_command.c,v 1.24 2003/04/14 15:58:13 millert Exp $"; +static char const rcsid[] = "$OpenBSD: do_command.c,v 1.25 2003/07/30 20:20:01 millert Exp $"; #endif #include "cron.h" @@ -258,9 +258,9 @@ child_process(entry *e, user *u) { _exit(OK_EXIT); } # endif /*DEBUGGING*/ - execle(shell, shell, "-c", e->cmd, (char *)0, e->envp); - fprintf(stderr, "execl: couldn't exec `%s'\n", shell); - perror("execl"); + execle(shell, shell, "-c", e->cmd, (char *)NULL, e->envp); + fprintf(stderr, "execle: couldn't exec `%s'\n", shell); + perror("execle"); _exit(ERROR_EXIT); } break; |
