mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
There is no reason to disallow setting the password or account expiry
date to the current date. MFC after: 3 days
This commit is contained in:
parent
6facd7a6b8
commit
a05aa38cb1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252556
@ -513,8 +513,6 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
|
||||
time_t now = time(NULL);
|
||||
time_t expire = parse_date(now, arg->val);
|
||||
|
||||
if (now == expire)
|
||||
errx(EX_DATAERR, "invalid password change date `%s'", arg->val);
|
||||
if (pwd->pw_change != expire) {
|
||||
pwd->pw_change = expire;
|
||||
edited = 1;
|
||||
@ -533,8 +531,6 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
|
||||
time_t now = time(NULL);
|
||||
time_t expire = parse_date(now, arg->val);
|
||||
|
||||
if (now == expire)
|
||||
errx(EX_DATAERR, "invalid account expiry date `%s'", arg->val);
|
||||
if (pwd->pw_expire != expire) {
|
||||
pwd->pw_expire = expire;
|
||||
edited = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user