summaryrefslogtreecommitdiff
path: root/source4/client
diff options
context:
space:
mode:
Diffstat (limited to 'source4/client')
-rw-r--r--source4/client/client.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/client/client.c b/source4/client/client.c
index 81bf2a7930..f73bacbcbc 100644
--- a/source4/client/client.c
+++ b/source4/client/client.c
@@ -1793,7 +1793,7 @@ static int cmd_acl(const char **cmd_ptr)
fstring buf;
int ret = 0;
TALLOC_CTX *mem_ctx;
- struct smb_query_secdesc query;
+ union smb_fileinfo query;
NTSTATUS status;
int fnum;
@@ -1813,17 +1813,18 @@ static int cmd_acl(const char **cmd_ptr)
mem_ctx = talloc_init("%s", fname);
- query.in.fnum = fnum;
- query.in.secinfo_flags = 0x7;
+ query.query_secdesc.level = RAW_FILEINFO_SEC_DESC;
+ query.query_secdesc.in.fnum = fnum;
+ query.query_secdesc.in.secinfo_flags = 0x7;
- status = smb_raw_query_secdesc(cli->tree, mem_ctx, &query);
+ status = smb_raw_fileinfo(cli->tree, mem_ctx, &query);
if (!NT_STATUS_IS_OK(status)) {
d_printf("%s - %s\n", fname, nt_errstr(status));
ret = 1;
goto done;
}
- NDR_PRINT_DEBUG(security_descriptor, query.out.sd);
+ NDR_PRINT_DEBUG(security_descriptor, query.query_secdesc.out.sd);
talloc_destroy(mem_ctx);