From 6f52435a72427a8264096ac14bad54020c9d852b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 11 May 2007 07:22:10 +0000 Subject: [PATCH] r22784: fixed change notify for delete on close --- source/smbd/close.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/smbd/close.c b/source/smbd/close.c index 1c9f6ea8c42..2eb3a3e13c6 100644 --- a/source/smbd/close.c +++ b/source/smbd/close.c @@ -287,6 +287,10 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp, status = map_nt_error_from_unix(errno); } + notify_fname(conn, NOTIFY_ACTION_REMOVED, + FILE_NOTIFY_CHANGE_FILE_NAME, + fsp->fsp_name); + /* As we now have POSIX opens which can unlink * with other open files we may have taken * this code path with more than one share mode -- 2.25.1