1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

smbclient: Use dom_sid_str_buf

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2018-12-21 09:30:58 +01:00 committed by Jeremy Allison
parent 6b8c77152e
commit 08be989aa9

View File

@ -3359,9 +3359,10 @@ static int cmd_posix_whoami(void)
}
d_printf("NUM_SIDS:%" PRIu32 "\n", num_sids);
for (i = 0; i < num_sids; i++) {
char *sid_str = dom_sid_string(ctx, &sids[i]);
d_printf("SIDS[%" PRIu32 "]:%s\n", i, sid_str);
TALLOC_FREE(sid_str);
struct dom_sid_buf buf;
d_printf("SIDS[%" PRIu32 "]:%s\n",
i,
dom_sid_str_buf(&sids[i], &buf));
}
return 0;
}