git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b8c771
)
smbclient: Use dom_sid_str_buf
author
Volker Lendecke
<vl@samba.org>
Fri, 21 Dec 2018 08:30:58 +0000
(09:30 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 8 Jan 2019 02:40:27 +0000
(
03:40
+0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/client/client.c
patch
|
blob
|
history
diff --git
a/source3/client/client.c
b/source3/client/client.c
index e8faed55dc4af828ee55478f18bc949be2a7bb84..3a31463cdbb5f154af4e7639ee3113c000e2764b 100644
(file)
--- a/
source3/client/client.c
+++ b/
source3/client/client.c
@@
-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;
}