diff options
author | alex <alex@FreeBSD.org> | 1998-01-08 20:05:45 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1998-01-08 20:05:45 +0000 |
commit | 7ebcb78d090480633c26a30ab2c4b6eb7ea05b0c (patch) | |
tree | 20562b60962ec0cf1d2690a168577a0459e1d20a /sbin/shutdown/shutdown.c | |
parent | 214f2c1c2f98d37c18465d92c0e9614fcdf79698 (diff) | |
download | FreeBSD-src-7ebcb78d090480633c26a30ab2c4b6eb7ea05b0c.zip FreeBSD-src-7ebcb78d090480633c26a30ab2c4b6eb7ea05b0c.tar.gz |
Added environment parameter to execle calls.
Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
Diffstat (limited to 'sbin/shutdown/shutdown.c')
-rw-r--r-- | sbin/shutdown/shutdown.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index 956302c..145f0e7 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: shutdown.c,v 1.9 1998/01/08 02:21:30 alex Exp $ + * $Id: shutdown.c,v 1.10 1998/01/08 02:23:59 alex Exp $ */ #ifndef lint @@ -327,12 +327,12 @@ die_you_gravy_sucking_pig_dog() (void)printf("\nkill -HUP 1\n"); #else if (doreboot) { - execle(_PATH_REBOOT, "reboot", "-l", nosync, 0); + execle(_PATH_REBOOT, "reboot", "-l", nosync, NULL, NULL); syslog(LOG_ERR, "shutdown: can't exec %s: %m.", _PATH_REBOOT); perror("shutdown"); } else if (dohalt) { - execle(_PATH_HALT, "halt", "-l", nosync, 0); + execle(_PATH_HALT, "halt", "-l", nosync, NULL, NULL); syslog(LOG_ERR, "shutdown: can't exec %s: %m.", _PATH_HALT); perror("shutdown"); } |