summaryrefslogtreecommitdiff
path: root/src/shared/user-record-show.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-09-02 16:37:42 +0200
committerLennart Poettering <lennart@poettering.net>2020-09-21 18:02:35 +0200
commit3e0b54867e22523cffda3b80e179df89b6d81bcd (patch)
tree072d8c13477a480752dd6b6b01774a8b28428427 /src/shared/user-record-show.c
parent61a29a020c5c6611a22a84c1456e8da7aa656194 (diff)
downloadsystemd-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.c4
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;