spoolss: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Fri, 14 Dec 2018 20:44:49 +0000 (21:44 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 20 Dec 2018 22:40:25 +0000 (23:40 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/rpc_server/spoolss/srv_spoolss_nt.c

index 024f19a73aaabeb5d1d17235416b2576783936f1..f32b465afb674d8cce22f1f8c6e58beba6822b65 100644 (file)
@@ -6240,6 +6240,7 @@ static WERROR update_printer_sec(struct policy_handle *handle,
        }
 
        if (DEBUGLEVEL >= 10) {
+               struct dom_sid_buf buf;
                struct security_acl *the_acl;
                int i;
 
@@ -6248,8 +6249,10 @@ static WERROR update_printer_sec(struct policy_handle *handle,
                           printer, the_acl->num_aces));
 
                for (i = 0; i < the_acl->num_aces; i++) {
-                       DEBUG(10, ("%s 0x%08x\n", sid_string_dbg(
-                                          &the_acl->aces[i].trustee),
+                       DEBUG(10, ("%s 0x%08x\n",
+                                  dom_sid_str_buf(
+                                          &the_acl->aces[i].trustee,
+                                          &buf),
                                  the_acl->aces[i].access_mask));
                }
 
@@ -6260,8 +6263,10 @@ static WERROR update_printer_sec(struct policy_handle *handle,
                                   printer, the_acl->num_aces));
 
                        for (i = 0; i < the_acl->num_aces; i++) {
-                               DEBUG(10, ("%s 0x%08x\n", sid_string_dbg(
-                                                  &the_acl->aces[i].trustee),
+                               DEBUG(10, ("%s 0x%08x\n",
+                                          dom_sid_str_buf(
+                                                  &the_acl->aces[i].trustee,
+                                                  &buf),
                                           the_acl->aces[i].access_mask));
                        }
                } else {