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:
parent
bf497819e6
commit
a0ae45be77
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user