From 2a3b84b88815304fe687679b2afe1f83bff70c4f Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 5 Apr 2009 22:02:00 +0000 Subject: [PATCH] * libmisc/isexpired.c: If there are no shadow entry, there is no need to convert the password entry to a shadow entry. The password is valid. --- ChangeLog | 6 ++++++ libmisc/isexpired.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2f52970a..aa72d20f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-04-05 Nicolas François + + * libmisc/isexpired.c: If there are no shadow entry, there is no + need to convert the password entry to a shadow entry. The password + is valid. + 2009-04-05 Nicolas François * man/usermod.8.xml: Split some paragraphs into smaller units. diff --git a/libmisc/isexpired.c b/libmisc/isexpired.c index 728159fb..aad91c5e 100644 --- a/libmisc/isexpired.c +++ b/libmisc/isexpired.c @@ -66,7 +66,7 @@ int isexpired (const struct passwd *pw, const struct spwd *sp) now = (long) time ((time_t *) 0) / SCALE; if (NULL == sp) { - sp = pwd_to_spwd (pw); + return 0; } /* -- 2.40.0