]> git.cameronkatri.com Git - pw-darwin.git/commit
pw(8): r326738 broke expiration arithmetic in case of `-D' flag not supplied.
authorEugene Grosbein <eugen@FreeBSD.org>
Fri, 15 Dec 2017 06:05:16 +0000 (06:05 +0000)
committerEugene Grosbein <eugen@FreeBSD.org>
Fri, 15 Dec 2017 06:05:16 +0000 (06:05 +0000)
commitfbe028edacee6a9c34f5debe6de7a8bbf08d21ab
tree5f2cc5873f93d7787eed3edf622c6b29db01cc03
parentec0a208a6ef7a6b67c2f2d3b23c848ed60922da6
pw(8): r326738 broke expiration arithmetic in case of `-D' flag not supplied.

Fix it and rename misnamed time_t variables `expire_days, password_days'
(always holding absolute time) to `expire_time, password_time'.

Add a comment for a case of overloading `cmdcnf->password_days'
and `cmdcnf->expire_days' with absolute time.

Reported by: markj
Approved by: mav (mentor)
MFC after: 1 week
pw/pw_user.c