nfs4_acls: Make fstatat_with_cap_dac_override static
authorChristof Schmitt <cs@samba.org>
Thu, 9 Nov 2023 19:37:25 +0000 (12:37 -0700)
committerJule Anger <janger@samba.org>
Sat, 25 Nov 2023 18:27:15 +0000 (18:27 +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 8831eeca1d70c909e15c86c8af6a7b1d7b0d3b5b)

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

index 7bb115c6ca8a25101f8ea2ed50f203a7dc7dd983..06742be7e70f236ecf994f2f20ab6c645788a54a 100644 (file)
@@ -116,11 +116,11 @@ int smbacl4_get_vfs_params(struct connection_struct *conn,
        return 0;
 }
 
-int fstatat_with_cap_dac_override(int fd,
-                                 const char *pathname,
-                                 SMB_STRUCT_STAT *sbuf,
-                                 int flags,
-                                 bool fake_dir_create_times)
+static int fstatat_with_cap_dac_override(int fd,
+                                        const char *pathname,
+                                        SMB_STRUCT_STAT *sbuf,
+                                        int flags,
+                                        bool fake_dir_create_times)
 {
        int ret;
 
index 1fafaafe76a26b4803c38d977b576d871a0da8de..829252b610497160c4b77d8a81c37b89c1e9935c 100644 (file)
@@ -118,12 +118,6 @@ struct smbacl4_vfs_params {
 int smbacl4_get_vfs_params(struct connection_struct *conn,
                           struct smbacl4_vfs_params *params);
 
-int fstatat_with_cap_dac_override(int fd,
-                                 const char *pathname,
-                                 SMB_STRUCT_STAT *sbuf,
-                                 int flags,
-                                 bool fake_dir_create_times);
-
 int stat_with_cap_dac_override(struct vfs_handle_struct *handle,
                               struct smb_filename *smb_fname, int flag);