1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

smbd: return correct error when trying to create a hardlink to a VSS file

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13688

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit a0ae45be770a13373c148a689b9761f14c4f942c)
This commit is contained in:
Ralph Boehme 2023-12-22 11:19:38 +01:00 committed by Jule Anger
parent 8c08511f97
commit 8ee0768d6f

View File

@ -3904,6 +3904,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,