From: nekral-guest Date: Sat, 20 Mar 2010 10:19:50 +0000 (+0000) Subject: * libmisc/strtoday.c: Empty dates indicate a disabled date, this is X-Git-Tag: 4.1.5~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f19f67c39cecf71c1a9280cba25bd28feebb6156;p=shadow * libmisc/strtoday.c: Empty dates indicate a disabled date, this is not an error. --- diff --git a/ChangeLog b/ChangeLog index 8b2fdb79..2a19aa49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-20 Nicolas François + + * libmisc/strtoday.c: Empty dates indicate a disabled date, this is + not an error. + 2010-03-19 Nicolas François * src/useradd.c, lib/commonio.c, po/POTFILES.in: Fix typos. diff --git a/libmisc/strtoday.c b/libmisc/strtoday.c index fe40e00a..57648984 100644 --- a/libmisc/strtoday.c +++ b/libmisc/strtoday.c @@ -75,7 +75,7 @@ long strtoday (const char *str) * (useradd sets sp_expire = current date for new lusers) */ if ((NULL == str) || ('\0' == *str)) { - return -2; + return -1; } /* If a numerical value is provided, this is already a number of