diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-02-28 08:19:00 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2004-02-28 08:19:00 +0000 |
commit | 6cf54c5fbea99109d45beb50098fbe3c0eb0b6ce (patch) | |
tree | 3cbcadbd702fb33f8e0fd965099d3c98f11398b9 /source3/utils | |
parent | a51129c4740cc4795440c193a99cedf844531462 (diff) | |
download | samba-6cf54c5fbea99109d45beb50098fbe3c0eb0b6ce.tar.gz samba-6cf54c5fbea99109d45beb50098fbe3c0eb0b6ce.tar.bz2 samba-6cf54c5fbea99109d45beb50098fbe3c0eb0b6ce.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 710969acaa9ce4467ec09c2fadb03e49fbc207be)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc.c | 9 |
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++) { |