* libmisc/hushed.c, lib/prototypes.h, src/login.c: Change the

hushed() prototype to take a username instead of a passwd
	structure in argument. The passwd entry is retrieved withing
	hushed().
This commit is contained in:
nekral-guest
2009-04-20 11:48:59 +00:00
parent 87ac185752
commit 1bcf2ffb59
4 changed files with 18 additions and 5 deletions

View File

@@ -847,7 +847,7 @@ int main (int argc, char **argv)
retcode = pam_setcred (pamh, PAM_ESTABLISH_CRED);
PAM_FAIL_CHECK;
retcode = pam_open_session (pamh, hushed (&pwent) ? PAM_SILENT : 0);
retcode = pam_open_session (pamh, hushed (username) ? PAM_SILENT : 0);
PAM_FAIL_CHECK;
#else /* ! USE_PAM */
@@ -1184,7 +1184,7 @@ int main (int argc, char **argv)
(void) bindtextdomain (PACKAGE, LOCALEDIR);
(void) textdomain (PACKAGE);
if (!hushed (&pwent)) {
if (!hushed (username)) {
addenv ("HUSHLOGIN=FALSE", NULL);
/*
* pam_unix, pam_mail and pam_lastlog should take care of