summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2005-03-18 22:31:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:07 -0500
commit5794ada01fdeb63c0e7df56abbc7592d9ff861fa (patch)
tree734ded9c8b7e6a8f0c9203abef95fd8e827fcefb
parent25088671a5814c79d41c583e48aaacb4c412cf44 (diff)
downloadsamba-5794ada01fdeb63c0e7df56abbc7592d9ff861fa.tar.gz
samba-5794ada01fdeb63c0e7df56abbc7592d9ff861fa.tar.bz2
samba-5794ada01fdeb63c0e7df56abbc7592d9ff861fa.zip
r5888: fix incorrect test - don't print anything if user is not in any groups
(This used to be commit 2461a8e482ab22dde4b7af8ea6d6ee043f302bf8)
-rw-r--r--source3/utils/net_rpc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 1a5e98b34e..27cc2a0918 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -1009,7 +1009,7 @@ rpc_user_info_internals(const DOM_SID *domain_sid, const char *domain_name,
/* Look up rids */
- if (rids) {
+ if (num_rids) {
rids = TALLOC_ARRAY(mem_ctx, uint32, num_rids);
for (i = 0; i < num_rids; i++)
@@ -1028,9 +1028,6 @@ rpc_user_info_internals(const DOM_SID *domain_sid, const char *domain_name,
for (i = 0; i < num_names; i++)
printf("%s\n", names[i]);
}
- else {
- printf("no groups\n");
- }
done:
return result;
}