Pass the correct, verified username to PAM instead of getlogin().

This commit is contained in:
Dag-Erling Smørgrav 2003-02-06 14:29:28 +00:00
parent 687200d002
commit 84c03427b4

View file

@ -225,7 +225,7 @@ main(int argc, char *argv[])
errx(1, "pam_start: %s", pam_strerror(pamh, retcode));
}
PAM_SET_ITEM(PAM_RUSER, getlogin());
PAM_SET_ITEM(PAM_RUSER, username);
mytty = ttyname(STDERR_FILENO);
if (!mytty)