* libmisc/strtoday.c: Empty dates indicate a disabled date, this is

not an error.
This commit is contained in:
nekral-guest 2010-03-20 10:19:50 +00:00
parent 823735750a
commit f19f67c39c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-03-20 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/strtoday.c: Empty dates indicate a disabled date, this is
not an error.
2010-03-19 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c, lib/commonio.c, po/POTFILES.in: Fix typos.

View File

@ -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