[gnome-keyring: 1/2] Fixes #26: restore behaviour before b22d058a when control file isn't found



commit 443a821cba105e8f277828a67b3d019b67f1324a
Author: Roderich Schupp <roderich schupp gmail com>
Date:   Fri Mar 1 16:41:24 2019 +0000

    Fixes #26: restore behaviour before b22d058a when control file isn't found

 pam/gkr-pam-module.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/pam/gkr-pam-module.c b/pam/gkr-pam-module.c
index f6b2188f..599cb20c 100644
--- a/pam/gkr-pam-module.c
+++ b/pam/gkr-pam-module.c
@@ -676,6 +676,8 @@ unlock_keyring (pam_handle_t *ph,
        res = get_control_file(ph, control);
        if (res != GKD_CONTROL_RESULT_OK) {
                syslog (GKR_LOG_ERR, "gkr-pam: unable to locate daemon control file");
+               if (res == GKD_CONTROL_RESULT_NO_DAEMON && need_daemon)
+                       *need_daemon = 1;
                return PAM_SERVICE_ERR;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]