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