mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Pass the correct, verified username to PAM instead of getlogin().
This commit is contained in:
parent
687200d002
commit
84c03427b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue