Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
gnome-keyring
gnome-keyring-spurious-syslog.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor