nfs4_acls: Make fstat_with_cap_dac_override static
authorChristof Schmitt <cs@samba.org>
Thu, 9 Nov 2023 19:39:57 +0000 (12:39 -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 bffd8bd8c32fea738824b807eb9e5f97a609493e)

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

index ac62569d597d707aa1120bfda58f0c33b1e6822a..4a1caa36d3c2d04f587d2e44cfe1d0d62cc86d7e 100644 (file)
@@ -192,8 +192,8 @@ int nfs4_acl_stat(struct vfs_handle_struct *handle,
        return ret;
 }
 
-int fstat_with_cap_dac_override(int fd, SMB_STRUCT_STAT *sbuf,
-                               bool fake_dir_create_times)
+static int fstat_with_cap_dac_override(int fd, SMB_STRUCT_STAT *sbuf,
+                                      bool fake_dir_create_times)
 {
        int ret;
 
index 03e2064e6599f8fd4f7510b4cebc95e27f8466b1..011b9da555454eb16659c262a56881f0e03301d9 100644 (file)
@@ -121,9 +121,6 @@ int smbacl4_get_vfs_params(struct connection_struct *conn,
 int nfs4_acl_stat(struct vfs_handle_struct *handle,
                  struct smb_filename *smb_fname);
 
-int fstat_with_cap_dac_override(int fd, SMB_STRUCT_STAT *sbuf,
-                               bool fake_dir_create_times);
-
 int nfs4_acl_fstat(struct vfs_handle_struct *handle,
                   struct files_struct *fsp,
                   SMB_STRUCT_STAT *sbuf);