File gnome-keyring-spurious-syslog.patch of Package gnome-keyring
Index: gnome-keyring-2.24.1/pam/gkr-pam-module.c
===================================================================
--- gnome-keyring-2.24.1.orig/pam/gkr-pam-module.c
+++ gnome-keyring-2.24.1/pam/gkr-pam-module.c
@@ -890,6 +890,7 @@ pam_sm_open_session (pam_handle_t *ph, i
const char *user = NULL, *password = NULL;
struct passwd *pwd;
int ret;
+ const char *socket;
uint args = parse_args (ph, argc, argv);
int started_daemon;
@@ -928,9 +929,14 @@ pam_sm_open_session (pam_handle_t *ph, i
return ret;
}
- if (!started_daemon && password != NULL) {
- if (unlock_keyring (ph, pwd, password) != PAM_SUCCESS)
- return PAM_SERVICE_ERR;
+ socket = get_any_env (ph, ENV_SOCKET);
+
+ /* If gnome keyring is running, then unlock now */
+ if (socket) {
+ if (!started_daemon && password != NULL) {
+ if (unlock_keyring (ph, pwd, password) != PAM_SUCCESS)
+ return PAM_SERVICE_ERR;
+ }
}
return PAM_SUCCESS;