From: Volker Lendecke Date: Fri, 30 Dec 2022 19:39:54 +0000 (+0100) Subject: smbd: Make get_posix_fsp() public X-Git-Tag: talloc-2.4.0~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19c41395e556199ee823f24111bb8967c64dc390;p=thirdparty%2Fsamba.git smbd: Make get_posix_fsp() public This will go static again soon. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 32e5c33896b..19414bfa7b0 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1156,6 +1156,12 @@ bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf, const uint32_t smb_fmask, int *stat_fflags); +NTSTATUS get_posix_fsp(connection_struct *conn, + struct smb_request *req, + struct smb_filename *smb_fname, + uint32_t access_mask, + files_struct **ret_fsp); + enum perm_type { PERM_NEW_FILE, PERM_NEW_DIR, diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index ced6dde8bf3..eff3e7676de 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -92,11 +92,11 @@ NTSTATUS check_access_fsp(struct files_struct *fsp, Utility function to open a fsp for a POSIX handle operation. ****************************************************************************/ -static NTSTATUS get_posix_fsp(connection_struct *conn, - struct smb_request *req, - struct smb_filename *smb_fname, - uint32_t access_mask, - files_struct **ret_fsp) +NTSTATUS get_posix_fsp(connection_struct *conn, + struct smb_request *req, + struct smb_filename *smb_fname, + uint32_t access_mask, + files_struct **ret_fsp) { NTSTATUS status; uint32_t create_disposition = FILE_OPEN;