]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove "dst_original_lcomp" from smb2_parse_file_rename_information()
authorVolker Lendecke <vl@samba.org>
Thu, 25 Sep 2025 06:55:34 +0000 (08:55 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 21 Oct 2025 17:33:29 +0000 (17:33 +0000)
Nobody uses it anymore

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_trans2.c

index c24ded34f28f8d7cdf830f7062d7631900ddf6e1..ffdafa104700462c28ed26c908b566d6732cc569 100644 (file)
@@ -4253,7 +4253,6 @@ NTSTATUS smb2_parse_file_rename_information(
        char *newname = NULL;
        struct files_struct *dst_dirfsp = NULL;
        struct smb_filename *smb_fname_dst = NULL;
-       char *dst_original_lcomp = NULL;
        uint32_t ucf_flags = ucf_flags_from_smb_request(req);
        bool overwrite = false;
        uint32_t len;
@@ -4325,20 +4324,6 @@ NTSTATUS smb2_parse_file_rename_information(
                return status;
        }
 
-       /*
-        * Set the original last component, since
-        * rename_internals_fsp() requires it.
-        */
-       dst_original_lcomp = get_original_lcomp(smb_fname_dst,
-                                       conn,
-                                       newname,
-                                       ucf_flags);
-       if (dst_original_lcomp == NULL) {
-               TALLOC_FREE(newname);
-               TALLOC_FREE(smb_fname_dst);
-               return NT_STATUS_NO_MEMORY;
-       }
-
 done:
        *_newname = newname;
        *_overwrite = overwrite;