diff options
author | Jeremy Allison <jra@samba.org> | 2016-03-01 17:25:25 -0800 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-03-03 09:04:14 +0100 |
commit | 8e88b9783dec751fe5bd4750923b62b978080885 (patch) | |
tree | 82bc4c83f0361d933d5480aa7ebc1cdd440faa22 /examples | |
parent | ac8fba6ef7093836eb6988e749325b69e7a7fde1 (diff) | |
download | samba-8e88b9783dec751fe5bd4750923b62b978080885.tar.gz |
VFS: Modify chmod_acl to take a const struct smb_filename * instead of const char *
Preparing to reduce use of lp_posix_pathnames().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/VFS/skel_opaque.c | 5 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index f772a9f9316..e7bb645f165 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -692,8 +692,9 @@ static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, return NT_STATUS_NOT_IMPLEMENTED; } -static int skel_chmod_acl(vfs_handle_struct *handle, const char *name, - mode_t mode) +static int skel_chmod_acl(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + mode_t mode) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index bea2cd4272f..fe2356a6e69 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -823,10 +823,11 @@ static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, return SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd); } -static int skel_chmod_acl(vfs_handle_struct *handle, const char *name, - mode_t mode) +static int skel_chmod_acl(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + mode_t mode) { - return SMB_VFS_NEXT_CHMOD_ACL(handle, name, mode); + return SMB_VFS_NEXT_CHMOD_ACL(handle, smb_fname, mode); } static int skel_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, |