From 11523b490c5f8eee5cd9e7faa1c348f71675623f Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 9 Nov 2023 12:39:57 -0700 Subject: [PATCH] nfs4_acls: Make fstat_with_cap_dac_override static MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit No other module is calling this function. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15507 Signed-off-by: Christof Schmitt Reviewed-by: Björn Jacke (cherry picked from commit bffd8bd8c32fea738824b807eb9e5f97a609493e) --- source3/modules/nfs4_acls.c | 4 ++-- source3/modules/nfs4_acls.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/source3/modules/nfs4_acls.c b/source3/modules/nfs4_acls.c index ac62569d597..4a1caa36d3c 100644 --- a/source3/modules/nfs4_acls.c +++ b/source3/modules/nfs4_acls.c @@ -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; diff --git a/source3/modules/nfs4_acls.h b/source3/modules/nfs4_acls.h index 03e2064e659..011b9da5554 100644 --- a/source3/modules/nfs4_acls.h +++ b/source3/modules/nfs4_acls.h @@ -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); -- 2.47.2