summaryrefslogtreecommitdiff
path: root/server/responder/nss/nsssrv_cmd.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-08-31 10:10:59 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-08-31 15:09:53 -0400
commit2cfd9562a4e7fae31c226c12a467d0225d42a89f (patch)
tree5798ee4f237bf88a3a7709b2fd5280615ca13420 /server/responder/nss/nsssrv_cmd.c
parent83763b67a8e7fa6533a6389cace47ec83ef32d0b (diff)
downloadsssd-2cfd9562a4e7fae31c226c12a467d0225d42a89f.tar.gz
sssd-2cfd9562a4e7fae31c226c12a467d0225d42a89f.tar.bz2
sssd-2cfd9562a4e7fae31c226c12a467d0225d42a89f.zip
Turn enumeration into a boolean value
Diffstat (limited to 'server/responder/nss/nsssrv_cmd.c')
-rw-r--r--server/responder/nss/nsssrv_cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/responder/nss/nsssrv_cmd.c b/server/responder/nss/nsssrv_cmd.c
index 30fbc15a..88749e9e 100644
--- a/server/responder/nss/nsssrv_cmd.c
+++ b/server/responder/nss/nsssrv_cmd.c
@@ -1022,7 +1022,7 @@ static void nss_cmd_setpwent_callback(void *ptr, int status,
/* do not reply until all domain searches are done */
for (dom = dctx->domain->next; dom; dom = dom->next) {
- if ((dom->enumerate & NSS_ENUM_USERS) != 0) break;
+ if (dom->enumerate != 0) break;
}
dctx->domain = dom;
@@ -1150,7 +1150,7 @@ static int nss_cmd_setpwent_ext(struct cli_ctx *cctx, bool immediate)
/* check if enumeration is enabled in any domain */
for (dom = cctx->rctx->domains; dom; dom = dom->next) {
- if ((dom->enumerate & NSS_ENUM_USERS) != 0) break;
+ if (dom->enumerate != 0) break;
}
dctx->domain = dom;
@@ -2350,7 +2350,7 @@ static void nss_cmd_setgrent_callback(void *ptr, int status,
/* do not reply until all domain searches are done */
for (dom = dctx->domain->next; dom; dom = dom->next) {
- if ((dom->enumerate & NSS_ENUM_GROUPS) != 0) break;
+ if (dom->enumerate != 0) break;
}
dctx->domain = dom;
@@ -2478,7 +2478,7 @@ static int nss_cmd_setgrent_ext(struct cli_ctx *cctx, bool immediate)
/* check if enumeration is enabled in any domain */
for (dom = cctx->rctx->domains; dom; dom = dom->next) {
- if ((dom->enumerate & NSS_ENUM_GROUPS) != 0) break;
+ if (dom->enumerate != 0) break;
}
dctx->domain = dom;