diff options
author | Jeremy Allison <jra@samba.org> | 2017-05-24 10:47:46 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-31 22:50:22 +0200 |
commit | aada94885dce29334e34c9aae32c22e7acfc1174 (patch) | |
tree | 9d8537532716da3435d583081182361d01588eae /source3/lib/sysacls.c | |
parent | f5dd864606d5e587b85695ea11520df31b353fb8 (diff) | |
download | samba-aada94885dce29334e34c9aae32c22e7acfc1174.tar.gz |
s3: VFS: Change SMB_VFS_SYS_ACL_SET_FILE to use const struct smb_filename * instead of const char *.
We need to migrate all pathname based VFS calls to use a struct
to finish modernising the VFS with extra timestamp and flags parameters.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/lib/sysacls.c')
-rw-r--r-- | source3/lib/sysacls.c | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c index 8016773110a..0bf3c37edfa 100644 --- a/source3/lib/sysacls.c +++ b/source3/lib/sysacls.c @@ -375,9 +375,11 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp, TALLOC_CT } int sys_acl_set_file(vfs_handle_struct *handle, - const char *name, SMB_ACL_TYPE_T type, SMB_ACL_T acl_d) + const struct smb_filename *smb_fname, + SMB_ACL_TYPE_T type, + SMB_ACL_T acl_d) { - return posixacl_sys_acl_set_file(handle, name, type, acl_d); + return posixacl_sys_acl_set_file(handle, smb_fname, type, acl_d); } int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, @@ -409,9 +411,11 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp, } int sys_acl_set_file(vfs_handle_struct *handle, - const char *name, SMB_ACL_TYPE_T type, SMB_ACL_T acl_d) + const struct smb_filename *smb_fname, + SMB_ACL_TYPE_T type, + SMB_ACL_T acl_d) { - return aixacl_sys_acl_set_file(handle, name, type, acl_d); + return aixacl_sys_acl_set_file(handle, smb_fname, type, acl_d); } int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, @@ -444,9 +448,11 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp, } int sys_acl_set_file(vfs_handle_struct *handle, - const char *name, SMB_ACL_TYPE_T type, SMB_ACL_T acl_d) + const struct smb_filename *smb_fname, + SMB_ACL_TYPE_T type, + SMB_ACL_T acl_d) { - return tru64acl_sys_acl_set_file(handle, name, type, acl_d); + return tru64acl_sys_acl_set_file(handle, smb_fname, type, acl_d); } int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, @@ -480,9 +486,11 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp, } int sys_acl_set_file(vfs_handle_struct *handle, - const char *name, SMB_ACL_TYPE_T type, SMB_ACL_T acl_d) + const struct smb_filename *smb_fname, + SMB_ACL_TYPE_T type, + SMB_ACL_T acl_d) { - return solarisacl_sys_acl_set_file(handle, name, type, acl_d); + return solarisacl_sys_acl_set_file(handle, smb_fname, type, acl_d); } int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, @@ -514,9 +522,11 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp, } int sys_acl_set_file(vfs_handle_struct *handle, - const char *name, SMB_ACL_TYPE_T type, SMB_ACL_T acl_d) + const struct smb_filename *smb_fname, + SMB_ACL_TYPE_T type, + SMB_ACL_T acl_d) { - return hpuxacl_sys_acl_set_file(handle, name, type, acl_d); + return hpuxacl_sys_acl_set_file(handle, smb_fname, type, acl_d); } int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, @@ -558,7 +568,9 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp, } int sys_acl_set_file(vfs_handle_struct *handle, - const char *name, SMB_ACL_TYPE_T type, SMB_ACL_T acl_d) + const struct smb_filename *smb_fname, + SMB_ACL_TYPE_T type, + SMB_ACL_T acl_d) { #ifdef ENOTSUP errno = ENOTSUP; |