1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

pam-systemd: remove duplicate error logging

This commit is contained in:
Lennart Poettering 2019-08-12 16:39:40 +02:00
parent d9608d40bc
commit 42e6680976

View File

@ -461,10 +461,8 @@ _public_ PAM_EXTERN int pam_sm_open_session(
pam_syslog(handle, LOG_DEBUG, "pam-systemd initializing");
r = get_user_data(handle, &username, &pw);
if (r != PAM_SUCCESS) {
pam_syslog(handle, LOG_ERR, "Failed to get user data.");
if (r != PAM_SUCCESS)
return r;
}
/* Make sure we don't enter a loop by talking to
* systemd-logind when it is actually waiting for the