summaryrefslogtreecommitdiff
path: root/source4/ntvfs/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-29 13:31:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:18 -0500
commit57bde8631fc65f9b8e10eee7f948e5690412bead (patch)
tree73b7545405cf4c70a8de5bc15f1dfd0876a6d15d /source4/ntvfs/common
parenta339d748ebfdeb1d39b4611c5e8e179f16bbc004 (diff)
downloadsamba-57bde8631fc65f9b8e10eee7f948e5690412bead.tar.gz
samba-57bde8631fc65f9b8e10eee7f948e5690412bead.tar.bz2
samba-57bde8631fc65f9b8e10eee7f948e5690412bead.zip
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)
Diffstat (limited to 'source4/ntvfs/common')
-rw-r--r--source4/ntvfs/common/notify.c7
1 files changed, 3 insertions, 4 deletions
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;i<notify->array->num_entries;i++) {
if (notify_match(notify, &notify->array->entries[i], path, action)) {
- notify_send(notify, &notify->array->entries[i], path, action);
+ notify_send(notify, &notify->array->entries[i],
+ path + strlen(notify->array->entries[i].path) + 1,
+ action);
}
}
}