From: Christof Schmitt Date: Thu, 9 Nov 2023 19:37:25 +0000 (-0700) Subject: nfs4_acls: Make fstatat_with_cap_dac_override static X-Git-Tag: samba-4.18.9~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6090ebfa5c14c777e3f6e4519bef244d1992f598;p=thirdparty%2Fsamba.git nfs4_acls: Make fstatat_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 8831eeca1d70c909e15c86c8af6a7b1d7b0d3b5b) --- 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);