From owner-cvs-sbin Sat Jan 10 12:14:53 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA08918 for cvs-sbin-outgoing; Sat, 10 Jan 1998 12:14:53 -0800 (PST) (envelope-from owner-cvs-sbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA08730; Sat, 10 Jan 1998 12:11:55 -0800 (PST) (envelope-from alex@FreeBSD.org) From: Alex Nash Received: (from alex@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id MAA02109; Sat, 10 Jan 1998 12:11:08 -0800 (PST) Date: Sat, 10 Jan 1998 12:11:08 -0800 (PST) Message-Id: <199801102011.MAA02109@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/shutdown shutdown.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk alex 1998/01/10 12:11:07 PST Modified files: sbin/shutdown shutdown.c Log: Pass an actual empty environment to execle() as per POSIX rather than rely on undocumented behavior. The following fixes were obtained from OpenBSD: o -Wall fixes to tlist array initialization and assignment used as truth value. o Use a restricted environment. o Improved error message when shutdown fails to exec reboot or halt. Revision Changes Path 1.12 +28 -10 src/sbin/shutdown/shutdown.c