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

jra at samba.org jra at samba.org
Tue Feb 21 17:00:00 GMT 2006


Author: jra
Date: 2006-02-21 17:00:00 +0000 (Tue, 21 Feb 2006)
New Revision: 13594

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

Log:
Got sense of NTSTATUS check reversed.
Jeremy.

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


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_usershare.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_usershare.c	2006-02-21 16:46:21 UTC (rev 13593)
+++ branches/SAMBA_3_0/source/utils/net_usershare.c	2006-02-21 17:00:00 UTC (rev 13594)
@@ -368,8 +368,8 @@
 
 		ntstatus = net_lookup_name_from_sid(ctx, &psd->dacl->ace[num_aces].trustee, &domain, &name);
 
-		if (!NT_STATUS_IS_OK(ntstatus)) {
-			if (*domain) {
+		if (NT_STATUS_IS_OK(ntstatus)) {
+			if (domain && *domain) {
 				pstrcat(acl_str, domain);
 				pstrcat(acl_str, sep_str);
 			}



More information about the samba-cvs mailing list