* libmisc/isexpired.c: Document the isexpired return value.
This commit is contained in:
parent
f67403ba01
commit
1ba2139d5c
@ -1,3 +1,7 @@
|
|||||||
|
2009-04-04 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* libmisc/isexpired.c: Document the isexpired return value.
|
||||||
|
|
||||||
2009-04-04 Nicolas François <nicolas.francois@centraliens.net>
|
2009-04-04 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* libmisc/age.c: Return a specific message when sp_lstchg is null.
|
* libmisc/age.c: Return a specific message when sp_lstchg is null.
|
||||||
|
@ -51,6 +51,13 @@
|
|||||||
*
|
*
|
||||||
* isexpired calculates the expiration date based on the
|
* isexpired calculates the expiration date based on the
|
||||||
* password expiration criteria.
|
* 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)
|
int isexpired (const struct passwd *pw, const struct spwd *sp)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user