diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-06-29 07:02:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:37 -0500 |
commit | 332f5b19a101115ce920b9291d10e78fbea8db62 (patch) | |
tree | 82e368ca500571d009323b562505d32babf8b68a /source4/libcli/raw/rawsetfileinfo.c | |
parent | bcc9e8af30e430e5bc49f23457a56ffe21624679 (diff) | |
download | samba-332f5b19a101115ce920b9291d10e78fbea8db62.tar.gz samba-332f5b19a101115ce920b9291d10e78fbea8db62.tar.bz2 samba-332f5b19a101115ce920b9291d10e78fbea8db62.zip |
r16667: - use ndr_pull_struct_blob() to make the RAW_FILEINFO_SEC_DESC pull code
simpler
- use ndr_push_struct_blob() for RAW_SFILEINFO_SEC_DESC
metze
(This used to be commit 79e51f033e680303431e56e818346b66a836d044)
Diffstat (limited to 'source4/libcli/raw/rawsetfileinfo.c')
-rw-r--r-- | source4/libcli/raw/rawsetfileinfo.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source4/libcli/raw/rawsetfileinfo.c b/source4/libcli/raw/rawsetfileinfo.c index 030779ad14..0daf14e0cc 100644 --- a/source4/libcli/raw/rawsetfileinfo.c +++ b/source4/libcli/raw/rawsetfileinfo.c @@ -21,6 +21,7 @@ #include "includes.h" #include "libcli/raw/libcliraw.h" +#include "librpc/gen_ndr/ndr_security.h" /* @@ -83,7 +84,18 @@ BOOL smb_raw_setfileinfo_passthru(TALLOC_CTX *mem_ctx, NEED_BLOB(4); SIVAL(blob->data, 0, parms->mode_information.in.mode); return True; - + + case RAW_FILEINFO_SEC_DESC: { + NTSTATUS status; + + status = ndr_push_struct_blob(blob, mem_ctx, + parms->set_secdesc.in.sd, + (ndr_push_flags_fn_t)ndr_push_security_descriptor); + if (!NT_STATUS_IS_OK(status)) return False; + + return True; + } + /* Unhandled levels */ case RAW_SFILEINFO_1023: case RAW_SFILEINFO_1025: |