From: Volker Lendecke Date: Wed, 28 Dec 2022 23:06:58 +0000 (+0100) Subject: smbd: Make smb_set_file_disposition_info() public X-Git-Tag: talloc-2.4.0~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcc621a69f90bc556b79eb5b0dd79faddb99a5d3;p=thirdparty%2Fsamba.git smbd: Make smb_set_file_disposition_info() public Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index cddd584925e..755a215b3a9 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1109,7 +1109,11 @@ char *store_file_unix_basic_info2(connection_struct *conn, char *pdata, files_struct *fsp, const SMB_STRUCT_STAT *psbuf); - +NTSTATUS smb_set_file_disposition_info(connection_struct *conn, + const char *pdata, + int total_data, + files_struct *fsp, + struct smb_filename *smb_fname); NTSTATUS refuse_symlink_fsp(const struct files_struct *fsp); NTSTATUS check_access_fsp(struct files_struct *fsp, uint32_t access_mask); diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 65db9af5ace..ff95b24017e 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -4853,11 +4853,11 @@ static NTSTATUS smb_set_file_full_ea_info(connection_struct *conn, Deal with SMB_SET_FILE_DISPOSITION_INFO. ****************************************************************************/ -static NTSTATUS smb_set_file_disposition_info(connection_struct *conn, - const char *pdata, - int total_data, - files_struct *fsp, - struct smb_filename *smb_fname) +NTSTATUS smb_set_file_disposition_info(connection_struct *conn, + const char *pdata, + int total_data, + files_struct *fsp, + struct smb_filename *smb_fname) { NTSTATUS status = NT_STATUS_OK; bool delete_on_close;