]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Add 'const char *dst_original_lcomp' parameter to rename_internals()
authorJeremy Allison <jra@samba.org>
Thu, 26 Mar 2020 01:41:10 +0000 (18:41 -0700)
committerRalph Boehme <slow@samba.org>
Mon, 30 Mar 2020 14:45:30 +0000 (14:45 +0000)
Pass through the existing smb_fname_dst->original_lcomp
parameter so no logic change. Preparing to remove the
use of original_lcomp.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/nttrans.c
source3/smbd/proto.h
source3/smbd/reply.c
source3/smbd/trans2.c

index 9f8fa7f47f1d0ba70b7d2ef8d60aec3b00392c4c..229232244c44adcb74e1533ddb62a90dafca664b 100644 (file)
@@ -1707,6 +1707,7 @@ void reply_ntrename(struct smb_request *req)
                                                req,
                                                smb_fname_old,
                                                smb_fname_new,
+                                               smb_fname_new->original_lcomp,
                                                attrs,
                                                false,
                                                src_has_wcard,
index d6d85e12a612670cc7dddb304dbebe89387b3608..cb32ebaca5e6386af8190dc1d32b9b7552e9ca18 100644 (file)
@@ -1026,6 +1026,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
                        struct smb_request *req,
                        struct smb_filename *smb_fname_src,
                        struct smb_filename *smb_fname_dst,
+                       const char *dst_original_lcomp,
                        uint32_t attrs,
                        bool replace_if_exists,
                        bool src_has_wild,
index 31ef904d65b44a178434bfa3c3665bce7c397490..369398116a4f5cc7c7ebd3996570f56abd7b7af2 100644 (file)
@@ -7900,6 +7900,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
                        struct smb_request *req,
                        struct smb_filename *smb_fname_src,
                        struct smb_filename *smb_fname_dst,
+                       const char *dst_original_lcomp,
                        uint32_t attrs,
                        bool replace_if_exists,
                        bool src_has_wild,
@@ -7998,7 +7999,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
                          conn->short_case_preserve,
                          smb_fname_str_dbg(smb_fname_src),
                          smb_fname_str_dbg(smb_fname_dst),
-                         smb_fname_dst->original_lcomp));
+                         dst_original_lcomp));
 
                /* The dest name still may have wildcards. */
                if (dest_has_wild) {
@@ -8065,7 +8066,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
                status = rename_internals_fsp(conn,
                                        fsp,
                                        smb_fname_dst,
-                                       smb_fname_dst->original_lcomp,
+                                       dst_original_lcomp,
                                        attrs,
                                        replace_if_exists);
 
@@ -8393,6 +8394,7 @@ void reply_mv(struct smb_request *req)
                                req,
                                smb_fname_src,
                                smb_fname_dst,
+                               smb_fname_dst->original_lcomp,
                                attrs,
                                false,
                                src_has_wcard,
index 70d45bf7654afacb7ee7356b81d3468256255628..bbb894c1af37e0a8eb98692b8ea700c538ee31a1 100644 (file)
@@ -7463,6 +7463,7 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn,
                                        req,
                                        smb_fname_src,
                                        smb_fname_dst,
+                                       smb_fname_dst->original_lcomp,
                                        0,
                                        overwrite,
                                        false,