diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 9f4a53926cc..138a26af2f2 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1553,12 +1553,12 @@ void reply_ntcancel(struct smb_request *req) Copy a file. ****************************************************************************/ -static NTSTATUS copy_internals(TALLOC_CTX *ctx, - connection_struct *conn, - struct smb_request *req, - struct smb_filename *smb_fname_src, - struct smb_filename *smb_fname_dst, - uint32_t attrs) +NTSTATUS copy_internals(TALLOC_CTX *ctx, + connection_struct *conn, + struct smb_request *req, + struct smb_filename *smb_fname_src, + struct smb_filename *smb_fname_dst, + uint32_t attrs) { files_struct *fsp1,*fsp2; uint32_t fattr; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 488a0745c9d..09416603378 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -714,6 +714,12 @@ NTSTATUS smbd_do_query_security_desc(connection_struct *conn, uint32_t max_data_count, uint8_t **ppmarshalled_sd, size_t *psd_size); +NTSTATUS copy_internals(TALLOC_CTX *ctx, + connection_struct *conn, + struct smb_request *req, + struct smb_filename *smb_fname_src, + struct smb_filename *smb_fname_dst, + uint32_t attrs); #ifdef HAVE_SYS_QUOTAS struct smb2_query_quota_info;