]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Pass "new_dirfsp" to unlink_internals
authorVolker Lendecke <vl@samba.org>
Wed, 24 Jun 2026 15:25:42 +0000 (17:25 +0200)
committerAnoop C S <anoopcs@samba.org>
Fri, 26 Jun 2026 10:41:34 +0000 (10:41 +0000)
There's no reason why we shouldn't.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/smb2_trans2.c

index 5f5c23e2f8ee23c94b5238e8a5f79087a06ab769..dfbc1b1b696dcc3c6d20f48458318a6b8f4b2aae 100644 (file)
@@ -3748,7 +3748,7 @@ NTSTATUS hardlink_internals(TALLOC_CTX *ctx,
                        status = unlink_internals(conn,
                                                req,
                                                FILE_ATTRIBUTE_NORMAL,
-                                               NULL, /* new_dirfsp */
+                                               dirfsp_new,
                                                smb_fname_new);
                        if (!NT_STATUS_IS_OK(status)) {
                                goto out;