From b4283f03ddf1a73b7da790751ee10953109bb922 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 3 May 2010 10:06:39 +0200 Subject: Fix a wrong return value in IPA HBAC --- src/providers/ipa/ipa_access.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c index 83bcb0c9..24d8d623 100644 --- a/src/providers/ipa/ipa_access.c +++ b/src/providers/ipa/ipa_access.c @@ -1360,7 +1360,7 @@ enum check_result check_user(struct hbac_ctx *hbac_ctx, return RULE_ERROR; } if (el->num_values == 0) { - DEBUG(9, ("USer category is not set.\n")); + DEBUG(9, ("User category is not set.\n")); } else { for (i = 0; i < el->num_values; i++) { if (strncasecmp("all", (const char *) el->values[i].data, @@ -1381,7 +1381,7 @@ enum check_result check_user(struct hbac_ctx *hbac_ctx, } if (el->num_values == 0) { DEBUG(9, ("No user specified, rule does not apply.\n")); - return RULE_APPLICABLE; + return RULE_NOT_APPLICABLE; } else { for (i = 0; i < el->num_values; i++) { DEBUG(9, ("Searching matches for [%.*s].\n", el->values[i].length, -- cgit