summaryrefslogtreecommitdiffstats
path: root/sbin/shutdown
Commit message (Collapse)AuthorAgeFilesLines
* Pass an actual empty environment to execle() as per POSIX rather thanalex1998-01-101-10/+28
| | | | | | | | | | | 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.
* Added environment parameter to execle calls.alex1998-01-081-3/+3
| | | | Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
* Correct a comment from my last commit.alex1998-01-081-2/+2
|
* Allow 'shutdown datespec' to work into the next century. Handle datesalex1998-01-081-1/+12
| | | | | in the 22nd century and beyond even though it's irrelevant with a 32-bit time_t which expires in the year 2038.
* Make the daemon process a true daemon by calling setsid().joerg1997-08-231-1/+2
| | | | | PR: bin/3202 Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* Add Xref to nologin(5).max1997-07-041-0/+1
|
* Use err(3).charnier1997-06-191-21/+13
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* -n was brokenadam1997-01-211-5/+0
| | | | 2.2 candidate (probably)
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-1/+0
| | | | which is no longer bogusly installed in /usr/include.
* Yanked out (now obsolete) support for 'fastboot'.dg1995-02-152-40/+5
|
* Submitted by: M.C. Wongats1994-11-271-1/+1
| | | | | Obtained from: Don't throw away the /etc/nologin file in the -k case.
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-264-0/+704
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud