From: Noel Power Date: Thu, 8 Apr 2021 11:34:39 +0000 (+0100) Subject: s3/modules: VFS: acl_common: Remove chmod_acl_module_common() function X-Git-Tag: tevent-0.11.0~1212 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d87123648b81fd2e39062ab3a9aac8abab41d2ce;p=thirdparty%2Fsamba.git s3/modules: VFS: acl_common: Remove chmod_acl_module_common() function Signed-off-by: Noel Power Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index f5933e68ae1..39afdcb1cf3 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -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) { diff --git a/source3/modules/vfs_acl_common.h b/source3/modules/vfs_acl_common.h index c686395bdfa..c4b4fb9c1b3 100644 --- a/source3/modules/vfs_acl_common.h +++ b/source3/modules/vfs_acl_common.h @@ -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,