]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: lib: sysacls: Remove all implementations of sys_acl_set_file().
authorJeremy Allison <jra@samba.org>
Wed, 9 Jun 2021 00:05:53 +0000 (17:05 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:31 +0000 (13:14 +0000)
No longer called.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/smb_acls.h
source3/lib/sysacls.c

index 50fdb18d2d5fab7545d1307fdce999435a4a061c..7203dd27d75975ee5d5d4e4e8619f4fc24bf257f 100644 (file)
@@ -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,
index 0fb7c6385979c20e055a70f443d2132032f6fd7a..d42337190c39df0bd016bc5aa6781290a7ceac06 100644 (file)
@@ -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,