mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
Pass the correct, verified username to PAM instead of getlogin().
This commit is contained in:
parent
687200d002
commit
84c03427b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110456
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user