]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/modules: VFS: acl_common: Remove chmod_acl_module_common() function
authorNoel Power <noel.power@suse.com>
Thu, 8 Apr 2021 11:34:39 +0000 (12:34 +0100)
committerNoel Power <npower@samba.org>
Sun, 11 Apr 2021 22:27:34 +0000 (22:27 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_acl_common.c
source3/modules/vfs_acl_common.h

index f5933e68ae1bbfc9db629ca3f75fc5896fc28744..39afdcb1cf3d557816e7124d3cbc908f9936d2d8 100644 (file)
@@ -1360,17 +1360,6 @@ int unlink_acl_common(struct vfs_handle_struct *handle,
        return -1;
 }
 
-int chmod_acl_module_common(struct vfs_handle_struct *handle,
-                           const struct smb_filename *smb_fname,
-                           mode_t mode)
-{
-       if (smb_fname->flags & SMB_FILENAME_POSIX_PATH) {
-               /* Only allow this on POSIX pathnames. */
-               return SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode);
-       }
-       return 0;
-}
-
 int fchmod_acl_module_common(struct vfs_handle_struct *handle,
                             struct files_struct *fsp, mode_t mode)
 {
index c686395bdfa43a13640afa2944d1bfd6a85555d0..c4b4fb9c1b311fd62c20691d00201698ec919cf8 100644 (file)
@@ -43,9 +43,6 @@ int unlink_acl_common(struct vfs_handle_struct *handle,
                        struct files_struct *dirfsp,
                        const struct smb_filename *smb_fname,
                        int flags);
-int chmod_acl_module_common(struct vfs_handle_struct *handle,
-                           const struct smb_filename *smb_fname,
-                           mode_t mode);
 int fchmod_acl_module_common(struct vfs_handle_struct *handle,
                             struct files_struct *fsp, mode_t mode);
 int chmod_acl_acl_module_common(struct vfs_handle_struct *handle,