+2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
+
+ * lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A
+ shadow entry is now sufficient for agecheck. Remove the first
+ passwd entry parameter.
+
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
#endif
/* age.c */
-extern void agecheck (const struct passwd *, const struct spwd *);
+extern void agecheck (const struct spwd *);
extern int expire (const struct passwd *, const struct spwd *);
extern int isexpired (const struct passwd *, const struct spwd *);
* to expire and warns the user of the pending password expiration.
*/
-void agecheck (const struct passwd *pw, const struct spwd *sp)
+void agecheck (const struct spwd *sp)
{
long now = (long) time ((time_t *) 0) / SCALE;
long remain;
/*
* Print out number of days until expiration.
*/
- agecheck (pwd, spwd);
+ agecheck (spwd);
/*
* Exit with status indicating state of account.
char fromhost[512];
struct passwd *pwd;
char **envp = environ;
+#ifndef
static char temp_pw[2];
static char temp_shell[] = "/bin/sh";
+#endif
#ifdef USE_PAM
int retcode;
#endif
printf (".\n");
}
- agecheck (&pwent, spwd);
+ agecheck (spwd);
mailcheck (); /* report on the status of mail */
#endif /* !USE_PAM */