From: Christof Schmitt Date: Thu, 9 Nov 2023 19:38:46 +0000 (-0700) Subject: nfs4_acls: Make stat_with_cap_dac_override static X-Git-Tag: samba-4.18.9~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9d4855b1ac35eba4bd9f9de7d3cc0248dae0885;p=thirdparty%2Fsamba.git nfs4_acls: Make stat_with_cap_dac_override static 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) --- 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);