summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-02-21 17:00:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:18 -0500
commitb9c73cb520019a290ccd0598433f743cb3a224b0 (patch)
treebedf9ed39de24642e6331353705da5dc6125bfb3
parent6a09da5d9e3c20902efcb4505ecd576a985338c8 (diff)
downloadsamba-b9c73cb520019a290ccd0598433f743cb3a224b0.tar.gz
samba-b9c73cb520019a290ccd0598433f743cb3a224b0.tar.bz2
samba-b9c73cb520019a290ccd0598433f743cb3a224b0.zip
r13594: Got sense of NTSTATUS check reversed.
Jeremy. (This used to be commit cd821079893dc6ff486d0c5f0bd756e78caa4e89)
-rw-r--r--source3/utils/net_usershare.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c
index 586d1646a9..b4d04bf338 100644
--- a/source3/utils/net_usershare.c
+++ b/source3/utils/net_usershare.c
@@ -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);
}