From: Jeremy Allison Date: Tue, 19 Sep 2023 16:55:12 +0000 (-0700) Subject: s3: smbd: As rename_internals() calls rename_internals_fsp(), show we can pass dst_di... X-Git-Tag: tevent-0.16.0~542 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c38815b4fcebc14bd7211f89323407e15a489fb1;p=thirdparty%2Fsamba.git s3: smbd: As rename_internals() calls rename_internals_fsp(), show we can pass dst_dirfsp as NULL here too. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb1_nttrans.c b/source3/smbd/smb1_nttrans.c index d1c45e7a459..fe605f4d16d 100644 --- a/source3/smbd/smb1_nttrans.c +++ b/source3/smbd/smb1_nttrans.c @@ -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, diff --git a/source3/smbd/smb1_reply.c b/source3/smbd/smb1_reply.c index f685be8016e..fe93c293735 100644 --- a/source3/smbd/smb1_reply.c +++ b/source3/smbd/smb1_reply.c @@ -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, diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index ac7512c739f..9158b098c44 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -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,