diff options
author | Björn Baumbach <bb@sernet.de> | 2011-07-22 16:56:04 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-23 09:31:02 +0200 |
commit | eacd555f704e6929dcdddf96e4b7f6316272d368 (patch) | |
tree | 75df941f69e1d691472316447e381602a78d235d /source3 | |
parent | 78f267df699a053a532a69cd4187917d6213deb1 (diff) | |
download | samba-eacd555f704e6929dcdddf96e4b7f6316272d368.tar.gz samba-eacd555f704e6929dcdddf96e4b7f6316272d368.tar.bz2 samba-eacd555f704e6929dcdddf96e4b7f6316272d368.zip |
s3-utils/smbcacls.c: replace cli_query_secdesc_old()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbcacls.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; |