git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eacd555
)
s3-utils/net_rpc_printer.c: replace cli_query_secdesc_old()
author
Björn Baumbach
<bb@sernet.de>
Fri, 22 Jul 2011 15:00:23 +0000
(17:00 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc_printer.c
b/source3/utils/net_rpc_printer.c
index f5019af346039c735a58865ad5e28c0a33e0ef49..56bdce1d7871b0796eeb6be97e224c39851c1313 100644
(file)
--- 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;
}