s3: smbd: As rename_internals() calls rename_internals_fsp(), show we can pass dst_di...
authorJeremy Allison <jra@samba.org>
Tue, 19 Sep 2023 16:55:12 +0000 (09:55 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 19 Sep 2023 18:59:34 +0000 (18:59 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb1_nttrans.c
source3/smbd/smb1_reply.c
source3/smbd/smb2_trans2.c

index d1c45e7a4593068f3d38b4a7947d69a590ad368f..fe605f4d16def2895891a4f9ef38aa9d6abe1749 100644 (file)
@@ -1577,7 +1577,7 @@ void reply_ntrename(struct smb_request *req)
                                                req,
                                                src_dirfsp,
                                                smb_fname_old,
-                                               dst_dirfsp,
+                                               NULL,
                                                smb_fname_new,
                                                dst_original_lcomp,
                                                attrs,
index f685be8016e5a331ed59b9909286f1863377c2b7..fe93c29373515db98731384bfeee7d39498e9ac3 100644 (file)
@@ -6481,7 +6481,7 @@ void reply_mv(struct smb_request *req)
                                req,
                                src_dirfsp, /* src_dirfsp */
                                smb_fname_src,
-                               dst_dirfsp, /* dst_dirfsp */
+                               NULL, /* dst_dirfsp */
                                smb_fname_dst,
                                dst_original_lcomp,
                                attrs,
index ac7512c739fbc57349debbd5f701502b200ab6d1..9158b098c44d22ec781f91d4e7c309754fba5f25 100644 (file)
@@ -4764,7 +4764,7 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn,
                                        req,
                                        NULL, /* src_dirfsp */
                                        smb_fname_src,
-                                       dst_dirfsp,
+                                       NULL,
                                        smb_fname_dst,
                                        dst_original_lcomp,
                                        0,