summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-03-21 11:47:50 +0100
committerVolker Lendecke <vl@samba.org>2012-03-21 12:52:09 +0100
commit8e256a2734bed8785c5fe919a442627050e70af9 (patch)
treecc482992112de5c20a4d3668dd69107313e9944d /source3
parent8044db0a4d625598bbd4cf676efc74525d0000c3 (diff)
downloadsamba-8e256a2734bed8785c5fe919a442627050e70af9.tar.gz
samba-8e256a2734bed8785c5fe919a442627050e70af9.tar.bz2
samba-8e256a2734bed8785c5fe919a442627050e70af9.zip
s3: Pass "conn" to sys_notify_watch()
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/notify.c3
-rw-r--r--source3/smbd/notify_internal.c3
-rw-r--r--source3/smbd/proto.h1
3 files changed, 5 insertions, 2 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index 80a79a6593..e9349f6531 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -548,6 +548,7 @@ struct sys_notify_context *sys_notify_context_create(connection_struct *conn,
}
NTSTATUS sys_notify_watch(struct sys_notify_context *ctx,
+ connection_struct *conn,
struct notify_entry *e,
const char *path,
void (*callback)(struct sys_notify_context *ctx,
@@ -555,7 +556,7 @@ NTSTATUS sys_notify_watch(struct sys_notify_context *ctx,
struct notify_event *ev),
void *private_data, void *handle)
{
- return SMB_VFS_NOTIFY_WATCH(ctx->conn, ctx, e, path, callback,
+ return SMB_VFS_NOTIFY_WATCH(conn, ctx, e, path, callback,
private_data, handle);
}
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index 8c2e8016d1..3fa5d32776 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -539,7 +539,8 @@ NTSTATUS notify_add(struct notify_context *notify, connection_struct *conn,
this call will modify e.filter and e.subdir_filter
to remove bits handled by the backend
*/
- status = sys_notify_watch(notify->sys_notify_ctx, &e, e.path,
+ status = sys_notify_watch(notify->sys_notify_ctx, conn,
+ &e, e.path,
sys_notify_callback, listel,
&listel->sys_notify_handle);
if (NT_STATUS_IS_OK(status)) {
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 2530456dd0..1f76403486 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -523,6 +523,7 @@ struct sys_notify_context *sys_notify_context_create(connection_struct *conn,
TALLOC_CTX *mem_ctx,
struct event_context *ev);
NTSTATUS sys_notify_watch(struct sys_notify_context *ctx,
+ connection_struct *conn,
struct notify_entry *e,
const char *path,
void (*callback)(struct sys_notify_context *ctx,