1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +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>
This commit is contained in:
Ralph Boehme 2023-12-22 11:19:38 +01:00
parent bf497819e6
commit a0ae45be77

View File

@ -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,