[Pkg-shadow-commits] r3169 - in upstream/trunk: . libmisc

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Sat Mar 20 10:19:50 UTC 2010


Author: nekral-guest
Date: 2010-03-20 10:19:50 +0000 (Sat, 20 Mar 2010)
New Revision: 3169

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/strtoday.c
Log:
	* libmisc/strtoday.c: Empty dates indicate a disabled date, this is
	not an error.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2010-03-19 11:25:56 UTC (rev 3168)
+++ upstream/trunk/ChangeLog	2010-03-20 10:19:50 UTC (rev 3169)
@@ -1,3 +1,8 @@
+2010-03-20  Nicolas François  <nicolas.francois at centraliens.net>
+
+	* libmisc/strtoday.c: Empty dates indicate a disabled date, this is
+	not an error.
+
 2010-03-19  Nicolas François  <nicolas.francois at centraliens.net>
 
 	* src/useradd.c, lib/commonio.c, po/POTFILES.in: Fix typos.

Modified: upstream/trunk/libmisc/strtoday.c
===================================================================
--- upstream/trunk/libmisc/strtoday.c	2010-03-19 11:25:56 UTC (rev 3168)
+++ upstream/trunk/libmisc/strtoday.c	2010-03-20 10:19:50 UTC (rev 3169)
@@ -75,7 +75,7 @@
 	 * (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




More information about the Pkg-shadow-commits mailing list