From 0192401c8a030782985b070a3436f1dcdd6f0a59 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Sun, 20 Oct 2024 21:37:41 +0200 Subject: [PATCH] smbd: trigger NOTIFY_ACTION_DIRLEASE_BREAK when creating hardlink Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- source3/smbd/smb2_trans2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 4bd285e4c48..3f8dcb09c50 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -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: -- 2.11.4.GIT