From: Volker Lendecke Date: Sat, 8 Dec 2018 14:20:36 +0000 (+0100) Subject: sharesec: Use dom_sid_str_buf X-Git-Tag: tdb-1.3.17~385 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d20c57c2d63cd2d042452ab8e81eac1693388b73;p=thirdparty%2Fsamba.git sharesec: Use dom_sid_str_buf Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/utils/sharesec.c b/source3/utils/sharesec.c index 375ae582ae5..1342af14a6e 100644 --- a/source3/utils/sharesec.c +++ b/source3/utils/sharesec.c @@ -222,8 +222,9 @@ static int change_share_sec(TALLOC_CTX *mem_ctx, const char *sharename, char *th } if (!found) { + struct dom_sid_buf buf; printf("ACL for SID %s not found\n", - sid_string_tos(&sd->dacl->aces[i].trustee)); + dom_sid_str_buf(&sd->dacl->aces[i].trustee, &buf)); } } @@ -428,13 +429,14 @@ int main(int argc, const char *argv[]) if ( initialize_sid ) { struct dom_sid *sid = get_global_sam_sid(); + struct dom_sid_buf buf; if ( !sid ) { fprintf( stderr, "Failed to retrieve Machine SID!\n"); return 3; } - printf ("%s\n", sid_string_tos( sid ) ); + printf ("%s\n", dom_sid_str_buf(sid, &buf) ); return 0; }