r22784: fixed change notify for delete on close
authorAndrew Tridgell <tridge@samba.org>
Fri, 11 May 2007 07:22:10 +0000 (07:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:21:57 +0000 (12:21 -0500)
source/smbd/close.c

index 1c9f6ea8c42deb9313b44f0390ac6174f850d015..2eb3a3e13c69a6f5f3fd685fd006d886a6724a69 100644 (file)
@@ -287,6 +287,10 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
                status = map_nt_error_from_unix(errno);
        }
 
                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
        /* 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