summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_printer.c8
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;
}