s3-utils/net_rpc_printer.c: replace cli_query_secdesc_old()
authorBjörn Baumbach <bb@sernet.de>
Fri, 22 Jul 2011 15:00:23 +0000 (17:00 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 23 Jul 2011 07:31:07 +0000 (09:31 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/utils/net_rpc_printer.c

index f5019af346039c735a58865ad5e28c0a33e0ef49..56bdce1d7871b0796eeb6be97e224c39851c1313 100644 (file)
@@ -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;
                }