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

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sun Apr 5 21:23:07 UTC 2009


Author: nekral-guest
Date: 2009-04-05 21:23:06 +0000 (Sun, 05 Apr 2009)
New Revision: 2585

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/isexpired.c
Log:
	* libmisc/isexpired.c: Document the isexpired return value.

Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-04-05 21:22:53 UTC (rev 2584)
+++ upstream/trunk/ChangeLog	2009-04-05 21:23:06 UTC (rev 2585)
@@ -1,5 +1,9 @@
 2009-04-04  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/isexpired.c: Document the isexpired return value.
+
+2009-04-04  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* libmisc/age.c: Return a specific message when sp_lstchg is null.
 
 2009-03-21  Nicolas François  <nicolas.francois at centraliens.net>

Modified: upstream/trunk/libmisc/isexpired.c
===================================================================
--- upstream/trunk/libmisc/isexpired.c	2009-04-05 21:22:53 UTC (rev 2584)
+++ upstream/trunk/libmisc/isexpired.c	2009-04-05 21:23:06 UTC (rev 2585)
@@ -51,6 +51,13 @@
  *
  *	isexpired calculates the expiration date based on the
  *	password expiration criteria.
+ *
+ * Return value:
+ *	0: The password is still valid
+ *	1: The password has expired, it must be changed
+ *	2: The password has expired since a long time and the account is
+ *	   now disabled. (password cannot be changed)
+ *	3: The account has expired
  */
 int isexpired (const struct passwd *pw, const struct spwd *sp)
 {




More information about the Pkg-shadow-commits mailing list