diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-11-13 12:48:53 -0800 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-11-13 22:48:19 +0100 |
commit | 236977bf4642c035bb22cfcd1cee481c5f6c6da1 (patch) | |
tree | fcec6c3d337a98120db720753b07bcf7163a2011 /source3/smbd/proto.h | |
parent | a4434297f19a3520d0f2ac242d4e99576d927ecc (diff) | |
download | samba-236977bf4642c035bb22cfcd1cee481c5f6c6da1.tar.gz |
Change get_nt_acl_no_snum() to return an NTSTATUS, not a struct security_descriptor *.
Internally change the implementation to use SMB_VFS_GET_NT_ACL()
instead of SMB_VFS_FGET_NT_ACL() with a faked-up file struct.
Andrew Bartlett
Reviewed by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/proto.h')
-rw-r--r-- | source3/smbd/proto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 221499cead..aae4bd02db 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -732,7 +732,8 @@ bool set_unix_posix_default_acl(connection_struct *conn, const char *fname, const SMB_STRUCT_STAT *psbuf, uint16 num_def_acls, const char *pdata); bool set_unix_posix_acl(connection_struct *conn, files_struct *fsp, const char *fname, uint16 num_acls, const char *pdata); -struct security_descriptor *get_nt_acl_no_snum( TALLOC_CTX *ctx, const char *fname, uint32 security_info_wanted); +NTSTATUS get_nt_acl_no_snum( TALLOC_CTX *ctx, const char *fname, uint32 security_info_wanted, + struct security_descriptor **sd); NTSTATUS make_default_filesystem_acl(TALLOC_CTX *ctx, const char *name, SMB_STRUCT_STAT *psbuf, |