From eacd555f704e6929dcdddf96e4b7f6316272d368 Mon Sep 17 00:00:00 2001 From: Björn Baumbach Date: Fri, 22 Jul 2011 16:56:04 +0200 Subject: s3-utils/smbcacls.c: replace cli_query_secdesc_old() Signed-off-by: Stefan Metzmacher --- source3/utils/smbcacls.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 6183146762..18f76c4723 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -722,12 +722,13 @@ static struct security_descriptor *get_secdesc(struct cli_state *cli, const char return NULL; } - sd = cli_query_secdesc_old(cli, fnum, talloc_tos()); + status = cli_query_secdesc(cli, fnum, talloc_tos(), &sd); cli_close(cli, fnum); - if (!sd) { - printf("Failed to get security descriptor\n"); + if (!NT_STATUS_IS_OK(status)) { + printf("Failed to get security descriptor: %s\n", + nt_errstr(status)); return NULL; } return sd; -- cgit