diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-09-02 16:37:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-09-21 18:02:35 +0200 |
commit | 3e0b54867e22523cffda3b80e179df89b6d81bcd (patch) | |
tree | 072d8c13477a480752dd6b6b01774a8b28428427 /src/shared/user-record-show.c | |
parent | 61a29a020c5c6611a22a84c1456e8da7aa656194 (diff) | |
download | systemd-3e0b54867e22523cffda3b80e179df89b6d81bcd.tar.gz |
user-record: don't refuse login when last pw change time is in the future
The RTC is like just off, it's a weird system state, let's continue
without requiring pw change.
Diffstat (limited to 'src/shared/user-record-show.c')
-rw-r--r-- | src/shared/user-record-show.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/user-record-show.c b/src/shared/user-record-show.c index 7839f6c2b8..9046fafcb2 100644 --- a/src/shared/user-record-show.c +++ b/src/shared/user-record-show.c @@ -124,6 +124,10 @@ void user_record_show(UserRecord *hr, bool show_full_group_info) { printf(" Password OK: %schange not permitted%s\n", ansi_highlight_yellow(), ansi_normal()); break; + case -ESTALE: + printf(" Password OK: %slast password change in future%s\n", ansi_highlight_yellow(), ansi_normal()); + break; + default: if (r < 0) { errno = -r; |