summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-05-03 10:06:39 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-05-03 13:52:11 -0400
commitd293186e98a9bd68c8961980978485adae082788 (patch)
tree16c20028af902bb40f6970cdcd6c0ef309bd8724 /src
parent6c8223ed11b46e44187b7f2ff201d68393b8c32e (diff)
downloadsssd-d293186e98a9bd68c8961980978485adae082788.tar.gz
sssd-d293186e98a9bd68c8961980978485adae082788.tar.bz2
sssd-d293186e98a9bd68c8961980978485adae082788.zip
Fix a wrong return value in IPA HBAC
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index d88e5c93..abb6edb7 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -1127,7 +1127,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,
@@ -1148,7 +1148,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,