freebsd-dev/usr.bin/chpass
Ed Maste ba85da072b chpass: reject change/expiry dates beyond y2106
The pwd.db and spwd.db files store the change and expire dates as
unsigned 32-bit ints, which overflow in 2106.  Reject larger values for
now, until the introduction of a v5 password database.

i386 has 32-bit time_t and so dates beyond y2038 are already rejected by
mktime.

PR:		227589
Reviewed by:	lidl
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2018-04-19 12:50:49 +00:00
..
chpass.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
chpass.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
chpass.h spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
edit.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
field.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
Makefile Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
table.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
util.c chpass: reject change/expiry dates beyond y2106 2018-04-19 12:50:49 +00:00