diff options
author | Jeremy Allison <jra@samba.org> | 2016-03-01 16:20:25 -0800 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-03-03 09:04:14 +0100 |
commit | ac8fba6ef7093836eb6988e749325b69e7a7fde1 (patch) | |
tree | 576c296d7bc49192f7cb333f034d4721f075b261 /source3/modules/vfs_acl_common.c | |
parent | d7ca174744001fabdc32e1c334dad347bb985756 (diff) | |
download | samba-ac8fba6ef7093836eb6988e749325b69e7a7fde1.tar.gz |
VFS: Modify chmod 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 'source3/modules/vfs_acl_common.c')
-rw-r--r-- | source3/modules/vfs_acl_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index 0c0cf83bdee..26841062fb5 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -1084,11 +1084,12 @@ static int unlink_acl_common(struct vfs_handle_struct *handle, } static int chmod_acl_module_common(struct vfs_handle_struct *handle, - const char *path, mode_t mode) + const struct smb_filename *smb_fname, + mode_t mode) { if (lp_posix_pathnames()) { /* Only allow this on POSIX pathnames. */ - return SMB_VFS_NEXT_CHMOD(handle, path, mode); + return SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode); } return 0; } |