From: Ralph Boehme Date: Sun, 20 Oct 2024 19:36:59 +0000 (+0200) Subject: smbd: trigger change notification when creating hardlink X-Git-Tag: tdb-1.4.13~692 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8762b957143159b750b2c58ec425b5294d372eab;p=thirdparty%2Fsamba.git smbd: trigger change notification when creating hardlink Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 2a23f060325..4bd285e4c48 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -3808,8 +3808,15 @@ NTSTATUS hardlink_internals(TALLOC_CTX *ctx, DEBUG(3,("hardlink_internals: Error %s hard link %s -> %s\n", nt_errstr(status), smb_fname_old->base_name, smb_fname_new->base_name)); + goto out; } + notify_fname(conn, + NOTIFY_ACTION_ADDED, + FILE_NOTIFY_CHANGE_FILE_NAME, + smb_fname_new, + NULL); + out: TALLOC_FREE(parent_fname_old);