Always use the name in shadow entry for logging. This reduces the
amount of data retrieved from password entry to bare minimum, i.e.
passing through into library call.
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
if (now < ok) {
(void) fprintf (stderr,
_("The password for %s cannot be changed yet.\n"),
- pw->pw_name);
- SYSLOG ((LOG_WARN, "now < minimum age for '%s'", pw->pw_name));
+ sp->sp_namp);
+ SYSLOG ((LOG_WARN, "now < minimum age for '%s'", sp->sp_namp));
closelog ();
exit (E_NOPERM);
}