]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: trigger NOTIFY_ACTION_DIRLEASE_BREAK when creating hardlink
authorRalph Boehme <slow@samba.org>
Sun, 20 Oct 2024 19:37:41 +0000 (21:37 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 Nov 2024 14:39:30 +0000 (14:39 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_trans2.c

index 4bd285e4c48f614348aec99137f43e102de94d1a..3f8dcb09c502d90d6bfa731f6f04816831b3c36f 100644 (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: