]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerJule Anger <janger@samba.org>
Sat, 25 Nov 2023 18:28:13 +0000 (18:28 +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>
(cherry picked from commit 0f664f016207894e0a156b9e1f4db7677c264205)

source3/modules/nfs4_acls.c
source3/modules/nfs4_acls.h

index 06742be7e70f236ecf994f2f20ab6c645788a54a..ac62569d597d707aa1120bfda58f0c33b1e6822a 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);