]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Make copy_internals() public. vfs_crossrename() will be changed to use...
authorJeremy Allison <jra@samba.org>
Thu, 17 Jun 2021 16:54:58 +0000 (09:54 -0700)
committerNoel Power <npower@samba.org>
Tue, 22 Jun 2021 13:44:34 +0000 (13:44 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/smbd/nttrans.c
source3/smbd/proto.h

index 9f4a53926cca6e08c52ed4382ced7aa720c01f86..138a26af2f2a41a3feebcc8d15765ab9b04a07e9 100644 (file)
@@ -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;
index 488a0745c9dd2fda8e7d29a57d7eea4ff17d9a1f..094166033781978755e5540b6c7fe6d14d8e8fa0 100644 (file)
@@ -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;