summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-02-28 08:18:09 +0000
committerVolker Lendecke <vlendec@samba.org>2004-02-28 08:18:09 +0000
commit0e2de3d27ebdb620c3372ecf90d889c70c030aa1 (patch)
tree0ccb0e5ba9e809eef8230c24cabb2d63a1cd550f /source3
parent3fb52e5cc0fe632584704e807dde5f0ae6612413 (diff)
downloadsamba-0e2de3d27ebdb620c3372ecf90d889c70c030aa1.tar.gz
samba-0e2de3d27ebdb620c3372ecf90d889c70c030aa1.tar.bz2
samba-0e2de3d27ebdb620c3372ecf90d889c70c030aa1.zip
Fix my fix to net rpc group list. We can certainly have more than a single
set of groups. Volker (This used to be commit e77fe4a77a6b0b8d92014edb073b36d01a1a5169)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index e46dfe7fd4..a3c4e7a135 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -1193,7 +1193,8 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name,
&start_idx, 3, &num_entries,
max_entries, max_size, &ctr);
- if (!NT_STATUS_IS_OK(result))
+ if (!NT_STATUS_IS_OK(result) &&
+ !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES))
break;
for (i = 0; i < num_entries; i++) {
@@ -1219,7 +1220,8 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name,
&start_idx, max_entries,
&groups, &num_entries);
- if (!NT_STATUS_IS_OK(result))
+ if (!NT_STATUS_IS_OK(result) &&
+ !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES))
break;
for (i = 0; i < num_entries; i++) {
@@ -1273,7 +1275,8 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name,
&start_idx, max_entries,
&groups, &num_entries);
- if (!NT_STATUS_IS_OK(result))
+ if (!NT_STATUS_IS_OK(result) &&
+ !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES))
break;
for (i = 0; i < num_entries; i++) {