Set $HOME to the correct directory (within the chroot tree).

This commit is contained in:
Dag-Erling Smørgrav 2003-04-30 00:40:24 +00:00
parent 260cc4834d
commit 3edc7b4e0b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114262

View File

@ -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);
}