summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-12-06 18:20:06 +0100
committerJeremy Allison <jra@samba.org>2018-12-07 23:29:00 +0100
commita32564eaf9241d2572ce1a7023b8ceec5846f97d (patch)
tree1e0b172ee25fef49f8b48ffc31b3a5de1b45c792 /source3
parentb080389f3ed29cde717ada6ae025672cf29fefce (diff)
downloadsamba-a32564eaf9241d2572ce1a7023b8ceec5846f97d.tar.gz
net_usershare: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_usershare.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c
index 8357296f727..1e2925979d0 100644
--- a/source3/utils/net_usershare.c
+++ b/source3/utils/net_usershare.c
@@ -446,12 +446,14 @@ static int info_fn(struct file_list *fl, void *priv)
}
} else {
- fstring sidstr;
- sid_to_fstring(sidstr,
- &psd->dacl->aces[num_aces].trustee);
- acl_str = talloc_asprintf_append(acl_str,
- "%s",
- sidstr);
+ struct dom_sid_buf sidstr;
+
+ acl_str = talloc_asprintf_append(
+ acl_str,
+ "%s",
+ dom_sid_str_buf(
+ &psd->dacl->aces[num_aces].trustee,
+ &sidstr));
if (!acl_str) {
return -1;
}