* libmisc/strtoday.c: Empty dates indicate a disabled date, this is
not an error.
This commit is contained in:
parent
823735750a
commit
f19f67c39c
@ -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>
|
2010-03-19 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/useradd.c, lib/commonio.c, po/POTFILES.in: Fix typos.
|
* src/useradd.c, lib/commonio.c, po/POTFILES.in: Fix typos.
|
||||||
|
@ -75,7 +75,7 @@ long strtoday (const char *str)
|
|||||||
* (useradd sets sp_expire = current date for new lusers)
|
* (useradd sets sp_expire = current date for new lusers)
|
||||||
*/
|
*/
|
||||||
if ((NULL == str) || ('\0' == *str)) {
|
if ((NULL == str) || ('\0' == *str)) {
|
||||||
return -2;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If a numerical value is provided, this is already a number of
|
/* If a numerical value is provided, this is already a number of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user