diff options
author | Stef Walter <stef@memberwebs.com> | 2009-07-31 03:25:32 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-07-31 03:25:32 +0000 |
commit | 9c505e89975af6d8849987e4d1ecb88d1e8482f9 (patch) | |
tree | 402391229de2aad5bf5c5b1b15f5c7085d55572d /pam | |
parent | b51aaae5133686190ca8aced6b44f14274feeff0 (diff) |
[pam] Fix use of constant not found in Solaris or FreeBSD.
The PAM_BAD_ITEM constant is linux specific. We don't need to use it,
so I've removed usage. Fixes bug #590268
Diffstat (limited to 'pam')
-rw-r--r-- | pam/gkr-pam-module.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pam/gkr-pam-module.c b/pam/gkr-pam-module.c index d3f72f1a..1137e353 100644 --- a/pam/gkr-pam-module.c +++ b/pam/gkr-pam-module.c @@ -230,7 +230,7 @@ evaluate_inlist (const char *needle, const char *haystack) const char *remaining; if (!needle) - return PAM_BAD_ITEM; + return 0; remaining = haystack; @@ -244,7 +244,7 @@ evaluate_inlist (const char *needle, const char *haystack) item += strlen (needle); /* is item really needle? */ if (*item == '\0' || *item == ',') - return PAM_SUCCESS; + return 1; } remaining = strchr (item, ','); @@ -255,7 +255,7 @@ evaluate_inlist (const char *needle, const char *haystack) ++remaining; } - return PAM_BAD_ITEM; + return 0; } /* ----------------------------------------------------------------------------- @@ -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) != PAM_SUCCESS) + if (evaluate_inlist (svc, value)) args |= ARG_IGNORE_SERVICE; } else if (strcmp (argv[i], "use_authtok") == 0) { |