diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-01-15 17:09:36 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-01-15 17:10:43 +0100 |
commit | 46d7c6afbf92e74fb96b6df2858d858ec77db991 (patch) | |
tree | dcdcbcb763c679fe45364289895c14cfd752f2d6 | |
parent | 5b8d1f6b7757781eb55ac15a1e079dcb7bc6792a (diff) | |
download | systemd-46d7c6afbf92e74fb96b6df2858d858ec77db991.tar.gz |
execute: allow pam_setcred() to fail, ignore errors
Fixes: #14567
Alternative-To: #14569
-rw-r--r-- | src/core/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index ad5e25e223..f3d2005637 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -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) |