From 57bde8631fc65f9b8e10eee7f948e5690412bead Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 29 Mar 2006 13:31:30 +0000 Subject: r14755: the change notify code now passes most of the RAW-NOTIFY test. Still more work to do though (This used to be commit 4d234b37e528137b5c00f6bbb84c2d6939fea324) --- source4/ntvfs/common/notify.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source4/ntvfs/common') diff --git a/source4/ntvfs/common/notify.c b/source4/ntvfs/common/notify.c index 604b6a1a2d..bc04c830f1 100644 --- a/source4/ntvfs/common/notify.c +++ b/source4/ntvfs/common/notify.c @@ -332,9 +332,6 @@ static BOOL notify_match(struct notify_context *notify, struct notify_entry *e, return False; } - if (path[len] == 0) { - return True; - } if (path[len] != '/') { return False; } @@ -395,7 +392,9 @@ void notify_trigger(struct notify_context *notify, /* this needs to be changed to a log(n) search */ for (i=0;iarray->num_entries;i++) { if (notify_match(notify, ¬ify->array->entries[i], path, action)) { - notify_send(notify, ¬ify->array->entries[i], path, action); + notify_send(notify, ¬ify->array->entries[i], + path + strlen(notify->array->entries[i].path) + 1, + action); } } } -- cgit