Date: Sat, 10 Jan 1998 12:11:08 -0800 (PST) From: Alex Nash <alex@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/shutdown shutdown.c Message-ID: <199801102011.MAA02109@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801102011.MAA02109>
