From: Jeremy Allison Date: Wed, 9 Jun 2021 00:05:53 +0000 (-0700) Subject: s3: lib: sysacls: Remove all implementations of sys_acl_set_file(). X-Git-Tag: tevent-0.11.0~460 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0c22f741562221aac905386698b69aebd070420;p=thirdparty%2Fsamba.git s3: lib: sysacls: Remove all implementations of sys_acl_set_file(). No longer called. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/include/smb_acls.h b/source3/include/smb_acls.h index 50fdb18d2d5..7203dd27d75 100644 --- a/source3/include/smb_acls.h +++ b/source3/include/smb_acls.h @@ -62,10 +62,6 @@ SMB_ACL_T sys_acl_get_fd(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_ACL_TYPE_T type, TALLOC_CTX *mem_ctx); -int sys_acl_set_file(struct vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - SMB_ACL_T acl_d); int sys_acl_set_fd(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_ACL_TYPE_T type, diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c index 0fb7c638597..d42337190c3 100644 --- a/source3/lib/sysacls.c +++ b/source3/lib/sysacls.c @@ -48,7 +48,6 @@ * reorder the entries in the ACL. * * sys_acl_valid() - * sys_acl_set_file() * sys_acl_set_fd() */ @@ -367,14 +366,6 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, return posixacl_sys_acl_get_fd(handle, fsp, type, mem_ctx); } -int sys_acl_set_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - SMB_ACL_T 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, SMB_ACL_TYPE_T type, @@ -399,14 +390,6 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, return aixacl_sys_acl_get_fd(handle, fsp, mem_ctx); } -int sys_acl_set_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - SMB_ACL_T 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, SMB_ACL_TYPE_T type, @@ -431,14 +414,6 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, mem_ctx); } -int sys_acl_set_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - SMB_ACL_T 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, SMB_ACL_TYPE_T type, @@ -465,14 +440,6 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, return hpuxacl_sys_acl_get_fd(handle, fsp, mem_ctx); } -int sys_acl_set_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - SMB_ACL_T 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, SMB_ACL_TYPE_T type, @@ -501,19 +468,6 @@ SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, return NULL; } -int sys_acl_set_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - SMB_ACL_T acl_d) -{ -#ifdef ENOTSUP - errno = ENOTSUP; -#else - errno = ENOSYS; -#endif - return -1; -} - int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, SMB_ACL_TYPE_T type,