From 42e6680976fd18fd9596313e0124ea4c83e55f4c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 12 Aug 2019 16:39:40 +0200 Subject: [PATCH] pam-systemd: remove duplicate error logging --- src/login/pam_systemd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c index ef8a599122e..2b88614a8af 100644 --- a/src/login/pam_systemd.c +++ b/src/login/pam_systemd.c @@ -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