diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 4bfe9f8044e..b0383b3cc19 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -3755,6 +3755,11 @@ NTSTATUS hardlink_internals(TALLOC_CTX *ctx, goto out; } + if (smb_fname_old->twrp != 0) { + status = NT_STATUS_NOT_SAME_DEVICE; + goto out; + } + status = parent_pathref(talloc_tos(), conn->cwd_fsp, smb_fname_old,