aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1998-01-08 20:05:45 +0000
committerAlexander Langer <alex@FreeBSD.org>1998-01-08 20:05:45 +0000
commit42f9a8963dd2f93342e5e35cda9210b96141806d (patch)
tree495375576c34f80c0598f7b6ba25ffac50fd4c3d /sbin
parent0c860bdede726b64ad3f1a03ea6f852104b9f6bb (diff)
downloadsrc-42f9a8963dd2f93342e5e35cda9210b96141806d.tar.gz
src-42f9a8963dd2f93342e5e35cda9210b96141806d.zip
Added environment parameter to execle calls.
Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
Notes
Notes: svn path=/head/; revision=32344
Diffstat (limited to 'sbin')
-rw-r--r--sbin/shutdown/shutdown.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index 956302c1c8dc..145f0e747f49 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");
}