nfs4_acls: Make stat_with_cap_dac_override static
authorChristof Schmitt <cs@samba.org>
Thu, 9 Nov 2023 19:38:46 +0000 (12:38 -0700)
committerBjoern Jacke <bjacke@samba.org>
Wed, 15 Nov 2023 18:54:11 +0000 (18:54 +0000)
No other module is calling this function.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15507

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
source3/modules/nfs4_acls.c
source3/modules/nfs4_acls.h

index cbb730c752dece348579e10d0b2331d8f9565741..552a72c9cbad1e0d1a78f3f3f4df9f4bbaff26ab 100644 (file)
@@ -135,8 +135,8 @@ static int fstatat_with_cap_dac_override(int fd,
        return ret;
 }
 
-int stat_with_cap_dac_override(struct vfs_handle_struct *handle,
-                              struct smb_filename *smb_fname, int flag)
+static int stat_with_cap_dac_override(struct vfs_handle_struct *handle,
+                                     struct smb_filename *smb_fname, int flag)
 {
        bool fake_dctime = lp_fake_directory_create_times(SNUM(handle->conn));
        int fd = -1;
index 829252b610497160c4b77d8a81c37b89c1e9935c..03e2064e6599f8fd4f7510b4cebc95e27f8466b1 100644 (file)
@@ -118,9 +118,6 @@ struct smbacl4_vfs_params {
 int smbacl4_get_vfs_params(struct connection_struct *conn,
                           struct smbacl4_vfs_params *params);
 
-int stat_with_cap_dac_override(struct vfs_handle_struct *handle,
-                              struct smb_filename *smb_fname, int flag);
-
 int nfs4_acl_stat(struct vfs_handle_struct *handle,
                  struct smb_filename *smb_fname);