svn commit: samba r5888 - in branches/SAMBA_3_0/source/utils: .

herb at samba.org herb at samba.org
Fri Mar 18 22:31:44 GMT 2005


Author: herb
Date: 2005-03-18 22:31:44 +0000 (Fri, 18 Mar 2005)
New Revision: 5888

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5888

Log:
fix incorrect test - don't print anything if user is not in any groups

Modified:
   branches/SAMBA_3_0/source/utils/net_rpc.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_rpc.c	2005-03-18 21:45:37 UTC (rev 5887)
+++ branches/SAMBA_3_0/source/utils/net_rpc.c	2005-03-18 22:31:44 UTC (rev 5888)
@@ -1009,7 +1009,7 @@
 
 	/* 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 @@
 		for (i = 0; i < num_names; i++)
 			printf("%s\n", names[i]);
 	}
-	else {
-		printf("no groups\n");
-	}
  done:
 	return result;
 }



More information about the samba-cvs mailing list