smbcacls: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Mon, 10 Dec 2018 11:51:56 +0000 (12:51 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 20 Dec 2018 22:40:24 +0000 (23:40 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/utils/smbcacls.c

index 33eb78c41ec4c515147ad7176b1036e3084522cd..7a39de9e5e757a556857d99a2610ceba34aa4b2a 100644 (file)
@@ -104,6 +104,7 @@ done:
 static struct dom_sid *get_domain_sid(struct cli_state *cli)
 {
        NTSTATUS status;
+       struct dom_sid_buf buf;
 
        struct dom_sid *sid = talloc(talloc_tos(), struct dom_sid);
        if (sid == NULL) {
@@ -126,7 +127,7 @@ static struct dom_sid *get_domain_sid(struct cli_state *cli)
 
        }
 
-       DEBUG(2,("Domain SID: %s\n", sid_string_dbg(sid)));
+       DEBUG(2,("Domain SID: %s\n", dom_sid_str_buf(sid, &buf)));
        return sid;
 }