diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-04-19 12:50:49 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-04-19 12:50:49 +0000 |
commit | 4bfb1c87937e103f04ec63d9b985b58a65cdd198 (patch) | |
tree | ba67c0dec4e6bf071231c5bad045497090392478 /libc | |
parent | e03fe59f20d9945dbf5c12d723679e5648fb27fa (diff) | |
download | pw-darwin-4bfb1c87937e103f04ec63d9b985b58a65cdd198.tar.gz pw-darwin-4bfb1c87937e103f04ec63d9b985b58a65cdd198.tar.zst pw-darwin-4bfb1c87937e103f04ec63d9b985b58a65cdd198.zip |
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
Diffstat (limited to 'libc')
0 files changed, 0 insertions, 0 deletions