From 6090ebfa5c14c777e3f6e4519bef244d1992f598 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 9 Nov 2023 12:37:25 -0700 Subject: [PATCH] nfs4_acls: Make fstatat_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 8831eeca1d70c909e15c86c8af6a7b1d7b0d3b5b) --- source3/modules/nfs4_acls.c | 10 +++++----- source3/modules/nfs4_acls.h | 6 ------ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/source3/modules/nfs4_acls.c b/source3/modules/nfs4_acls.c index 7bb115c6ca8..06742be7e70 100644 --- a/source3/modules/nfs4_acls.c +++ b/source3/modules/nfs4_acls.c @@ -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; diff --git a/source3/modules/nfs4_acls.h b/source3/modules/nfs4_acls.h index 1fafaafe76a..829252b6104 100644 --- a/source3/modules/nfs4_acls.h +++ b/source3/modules/nfs4_acls.h @@ -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); -- 2.34.1