From f9d4855b1ac35eba4bd9f9de7d3cc0248dae0885 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 9 Nov 2023 12:38:46 -0700 Subject: [PATCH] nfs4_acls: Make stat_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 0f664f016207894e0a156b9e1f4db7677c264205) --- 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 06742be7e70..ac62569d597 100644 --- a/source3/modules/nfs4_acls.c +++ b/source3/modules/nfs4_acls.c @@ -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; diff --git a/source3/modules/nfs4_acls.h b/source3/modules/nfs4_acls.h index 829252b6104..03e2064e659 100644 --- a/source3/modules/nfs4_acls.h +++ b/source3/modules/nfs4_acls.h @@ -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); -- 2.47.2