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:
parent
8c08511f97
commit
8ee0768d6f
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user