execute: allow pam_setcred() to fail, ignore errors
Fixes: #14567 Alternative-To: #14569
This commit is contained in:
parent
5b8d1f6b77
commit
46d7c6afbf
|
@ -1195,7 +1195,7 @@ static int setup_pam(
|
|||
|
||||
pam_code = pam_setcred(handle, PAM_ESTABLISH_CRED | flags);
|
||||
if (pam_code != PAM_SUCCESS)
|
||||
goto fail;
|
||||
log_debug("pam_setcred() failed, ignoring: %s", pam_strerror(handle, pam_code));
|
||||
|
||||
pam_code = pam_open_session(handle, flags);
|
||||
if (pam_code != PAM_SUCCESS)
|
||||
|
|
Loading…
Reference in a new issue