]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
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 552a72c9cbad1e0d1a78f3f3f4df9f4bbaff26ab..44c4718d3e4e40345789d80d5a650ec4f948a873 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);