1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

smbd: trigger NOTIFY_ACTION_DIRLEASE_BREAK when creating hardlink

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Ralph Boehme 2024-10-20 21:37:41 +02:00
parent 8762b95714
commit 0192401c8a

View File

@ -3812,10 +3812,11 @@ NTSTATUS hardlink_internals(TALLOC_CTX *ctx,
}
notify_fname(conn,
NOTIFY_ACTION_ADDED,
NOTIFY_ACTION_ADDED |
NOTIFY_ACTION_DIRLEASE_BREAK,
FILE_NOTIFY_CHANGE_FILE_NAME,
smb_fname_new,
NULL);
fsp_get_smb2_lease(smb_fname_old->fsp));
out: