[gnome-keyring] [pam] Fix logic for only_if option



commit 7396a4fca5b55c6ce0e9e5f2fdd1d04b427e3b13
Author: Vincent Untz <vuntz gnome org>
Date:   Sun Aug 30 20:50:19 2009 +0200

    [pam] Fix logic for only_if option
    
    The logic was reverted, so we were ignoring services that were supposed
    to be the ones allowed.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=593575

 pam/gkr-pam-module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pam/gkr-pam-module.c b/pam/gkr-pam-module.c
index 1137e35..530bf42 100644
--- a/pam/gkr-pam-module.c
+++ b/pam/gkr-pam-module.c
@@ -821,7 +821,7 @@ parse_args (pam_handle_t *ph, int argc, const char **argv)
 
 		} else if (strncmp (argv[i], "only_if=", only_if_len) == 0) {
 			const char *value = argv[i] + only_if_len;
-			if (evaluate_inlist (svc, value))
+			if (!evaluate_inlist (svc, value))
 				args |= ARG_IGNORE_SERVICE;
 
 		} else if (strcmp (argv[i], "use_authtok") == 0) {



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