From 012be92f0a771d8437f783dc8ed14f38c669893c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 18 Nov 2004 01:41:43 +0000 Subject: r3830: unified the query/set security descriptor code with the rest of the queryfileinfo/setfileinfo logic, so querying/setting a security descriptor is treated as just another file query/set operation. This will allow NTVFS backends to see the query/set security descriptor operations as RAW_FILEINFO_SEC_DESC and RAW_SFILEINFO_SEC_DESC operations. (This used to be commit f68a6b6b915c37e48c42390c1e74c2d1c2636fa9) --- source4/client/client.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source4/client/client.c') 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); -- cgit