diff options
author | Björn Baumbach <bb@sernet.de> | 2011-07-22 17:00:23 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-23 09:31:07 +0200 |
commit | c436a7d8129f7a1d0fd0ecad17d90c6738da5c0a (patch) | |
tree | 1d013f18d39be421f7ae229f95e334b5c8729ff7 /source3/utils | |
parent | eacd555f704e6929dcdddf96e4b7f6316272d368 (diff) | |
download | samba-c436a7d8129f7a1d0fd0ecad17d90c6738da5c0a.tar.gz samba-c436a7d8129f7a1d0fd0ecad17d90c6738da5c0a.tar.bz2 samba-c436a7d8129f7a1d0fd0ecad17d90c6738da5c0a.zip |
s3-utils/net_rpc_printer.c: replace cli_query_secdesc_old()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_printer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index f5019af346..56bdce1d78 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -185,11 +185,11 @@ NTSTATUS net_copy_fileattr(struct net_context *c, if (copy_acls) { /* get the security descriptor */ - sd = cli_query_secdesc_old(cli_share_src, fnum_src, mem_ctx); - if (!sd) { + nt_status = cli_query_secdesc(cli_share_src, fnum_src, + mem_ctx, &sd); + if (!NT_STATUS_IS_OK(nt_status)) { DEBUG(0,("failed to get security descriptor: %s\n", - cli_errstr(cli_share_src))); - nt_status = cli_nt_error(cli_share_src); + nt_errstr(nt_status))); goto out; } |