From: Andrew Tridgell Date: Fri, 11 May 2007 07:22:10 +0000 (+0000) Subject: r22784: fixed change notify for delete on close X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~493 X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=6f52435a72427a8264096ac14bad54020c9d852b;ds=sidebyside r22784: fixed change notify for delete on close --- 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