mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +03:00
pam_systemd: don't use PAM_SYSTEM_ERR for something that isn't precisely a system error
It's not really clear which PAM errors to use for which conditions, but something called PAM_SYSTEM_ERR should probably not be used when the error is not the result of some system call failure.
This commit is contained in:
parent
1798f5afe3
commit
8d46418e93
@ -660,7 +660,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
|
||||
return PAM_SUCCESS;
|
||||
} else {
|
||||
pam_syslog(handle, LOG_ERR, "Failed to create session: %s", bus_error_message(&error, r));
|
||||
return PAM_SYSTEM_ERR;
|
||||
return PAM_SESSION_ERR;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user