summaryrefslogtreecommitdiff
path: root/sbin/shutdown/shutdown.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-20 07:12:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-20 07:12:58 +0000
commitdae6a43db5f21705198a4fcabb1b7f0d6499d94d (patch)
tree61cdd2c09824ea294d700b3f3c69e041b1d860a8 /sbin/shutdown/shutdown.c
parent0a527c562ef7ab53151057460149926dd1950e70 (diff)
call execle with the correct params; netbsd pr#2737, augustss@cs.chalmers.se
Diffstat (limited to 'sbin/shutdown/shutdown.c')
-rw-r--r--sbin/shutdown/shutdown.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index ff7360b1d8e..35bc0fd197f 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shutdown.c,v 1.4 1996/09/02 12:21:57 deraadt Exp $ */
+/* $OpenBSD: shutdown.c,v 1.5 1996/09/20 07:12:57 deraadt Exp $ */
/* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94";
#else
-static char rcsid[] = "$OpenBSD: shutdown.c,v 1.4 1996/09/02 12:21:57 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: shutdown.c,v 1.5 1996/09/20 07:12:57 deraadt Exp $";
#endif
#endif /* not lint */
@@ -360,12 +360,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");
}