freebsd-dev/sbin
Eitan Adler cb1101afd7 shutdown: Assume absolute time is in the future
The original bug describes it best:

When an absolute time is specified to shutdown, the program's
behavior depends on whether that time has passed during the
current calendar day.  POLA would suggest that for shutdown,
whose time argument is always supposed to be in the future,
absolute times specified without a specific date should refer
to the next occurrence of that time, rather than erroring out
if that time has already passed during the current day.

PR:		32411
Submitted by:	wollman@khavrinen.lcs.mit.edu
Submitted on:	2001-11-30 20:30:01 UTC
Reviewed by:	asmodai (at time of bug submission)
2018-01-01 22:33:57 +00:00
..
adjkerntz various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
bsdlabel General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
camcontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ccdconfig ccdconfig: Move VCS tags to be more consistent with our style. 2017-12-30 00:26:42 +00:00
clri General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
comcontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
conscontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ddb various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
decryptcore DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
devd various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
devfs other: Fix several typos and minor errors 2017-12-27 03:23:58 +00:00
dhclient dhclient(8): raise WARNS to 3 2017-12-14 15:41:32 +00:00
dmesg General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
dump In preparation for converting to libufs to read the superblock, 2017-12-27 22:18:56 +00:00
dumpfs General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
dumpon General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
etherswitchcfg various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fdisk DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
ffsinfo spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
fsck various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fsck_ffs various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fsck_msdosfs Prevent OOB access on corrupted msdos directories. 2017-11-30 08:28:17 +00:00
fsdb The fix in r327273 turns a memory leak into freeing wild pointer. 2017-12-29 06:22:05 +00:00
fsirand various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
gbde various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
geom Document gmirror sysctls. 2017-11-30 20:37:12 +00:00
ggate various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
growfs Tone down the description for the growfs "-y" flag. 2017-12-13 14:08:33 +00:00
gvinum various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
hastctl various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
hastd various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifconfig Add support for IPv6 scoped addresses to vxlan 2017-12-30 04:03:53 +00:00
init General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
ipf rescue ipf: Remove hacks and link in libipf directly. 2017-11-10 07:52:58 +00:00
ipfw Fix a few more speelling errors 2017-12-28 01:31:28 +00:00
iscontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
kldconfig various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
kldload various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
kldstat various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
kldunload various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ldconfig various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
md5 DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mdconfig various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mdmfs various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mknod General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mksnap_ffs various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mount various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mount_cd9660 General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mount_fusefs various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mount_msdosfs various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mount_nfs General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mount_nullfs General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mount_udf General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mount_unionfs General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
nandfs various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
natd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
newfs General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
newfs_msdos Close fd and fd1 before returning now that we're done with them. 2017-12-28 05:34:19 +00:00
newfs_nandfs various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
nfsiod General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
nos-tun various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
nvmecontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pfctl Free path before returnig. 2017-12-28 05:33:54 +00:00
pflogd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
ping General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
ping6 General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
quotacheck General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rcorder various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
reboot Flesh out the reason for the need for tmpfs a little. 2017-12-20 16:02:11 +00:00
recoverdisk SPDX: use the Beerware identifier. 2017-11-30 20:33:45 +00:00
resolvconf sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:33:01 +00:00
restore General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
route General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
routed When bind fails, make sure we closed the socket we tried to bind the 2017-12-28 05:34:24 +00:00
rtsol DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
savecore General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
sconfig DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
setkey General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
shutdown shutdown: Assume absolute time is in the future 2018-01-01 22:33:57 +00:00
spppcontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
sunlabel General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
swapon General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
sysctl Improve sysctl(8) pretty printing of some structures. 2017-11-26 10:02:43 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
tunefs General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
umount General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
zfsbootcfg DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
Makefile Remove badsect(8). 2017-11-05 22:00:54 +00:00
Makefile.amd64 Integrate nvmecontrol(8) into the amd64 and i386 builds. 2012-09-17 21:41:38 +00:00
Makefile.arm
Makefile.i386 Integrate nvmecontrol(8) into the amd64 and i386 builds. 2012-09-17 21:41:38 +00:00
Makefile.inc Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
Makefile.mips
Makefile.sparc64