r13594: Got sense of NTSTATUS check reversed.
authorJeremy Allison <jra@samba.org>
Tue, 21 Feb 2006 17:00:00 +0000 (17:00 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:10:18 +0000 (11:10 -0500)
Jeremy.

source/utils/net_usershare.c

index 586d1646a982c5e2d3fa895cbd3971c46cacf070..b4d04bf33883d1cf6fcbb0f6640c3d3bd5e454d0 100644 (file)
@@ -368,8 +368,8 @@ static int info_fn(struct file_list *fl, void *priv)
 
                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);
                        }