summaryrefslogtreecommitdiff
path: root/source3/smbd/notify.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-03-26 12:46:11 +0200
committerVolker Lendecke <vl@samba.org>2012-03-26 17:45:43 +0200
commitfa6f61e83565f49fb4e75248cffaa1ef31567d20 (patch)
tree0caed7c2a103a24db7e6d2e0578071beefbb69f2 /source3/smbd/notify.c
parentc3a506b64e248152212ab647048a47bd63039452 (diff)
downloadsamba-fa6f61e83565f49fb4e75248cffaa1ef31567d20.tar.gz
samba-fa6f61e83565f49fb4e75248cffaa1ef31567d20.tar.bz2
samba-fa6f61e83565f49fb4e75248cffaa1ef31567d20.zip
s3: Pass filters explicitly through vfs notify watch
This removes a dependency on "struct notify_entry" and makes the nature of the API more explicit. We depend upon the VFS module to mask out elements from e->filter and e->subdir_filter that it took over to handle. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 26 17:45:44 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/notify.c')
-rw-r--r--source3/smbd/notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index 53ae2d68e7..fd9e5524a7 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -235,8 +235,8 @@ NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter,
status = SMB_VFS_NOTIFY_WATCH(
fsp->conn, fsp->conn->sconn->sys_notify_ctx,
- &e, e.path, sys_notify_callback, fsp,
- &sys_notify_handle);
+ e.path, &e.filter, &e.subdir_filter,
+ sys_notify_callback, fsp, &sys_notify_handle);
if (NT_STATUS_IS_OK(status)) {
talloc_steal(fsp->notify, sys_notify_handle);