Set $HOME to the correct directory (within the chroot tree).
This commit is contained in:
parent
260cc4834d
commit
3edc7b4e0b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114262
@ -94,6 +94,7 @@ pam_sm_open_session(pam_handle_t *pamh, int flags __unused,
|
||||
openpam_log(PAM_LOG_ERROR, "chdir(): %m");
|
||||
return (PAM_SESSION_ERR);
|
||||
}
|
||||
pam_setenv(pamh, "HOME", cwd, 1);
|
||||
return (PAM_SUCCESS);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user