diff options
-rw-r--r-- | source3/smbd/notify.c | 3 | ||||
-rw-r--r-- | source3/smbd/notify_internal.c | 3 | ||||
-rw-r--r-- | source3/smbd/proto.h | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 5a78a726b7..80a79a6593 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -221,7 +221,8 @@ NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter, e.subdir_filter = filter; } - status = notify_add(fsp->conn->notify_ctx, &e, notify_callback, fsp); + status = notify_add(fsp->conn->notify_ctx, fsp->conn, &e, + notify_callback, fsp); TALLOC_FREE(fullpath); return status; diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index b12459c9d3..8c2e8016d1 100644 --- a/source3/smbd/notify_internal.c +++ b/source3/smbd/notify_internal.c @@ -505,7 +505,8 @@ static void notify_add_onelevel(struct notify_context *notify, add a notify watch. This is called when a notify is first setup on a open directory handle. */ -NTSTATUS notify_add(struct notify_context *notify, struct notify_entry *e0, +NTSTATUS notify_add(struct notify_context *notify, connection_struct *conn, + struct notify_entry *e0, void (*callback)(void *, const struct notify_event *), void *private_data) { diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 69655e7df6..2530456dd0 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -548,7 +548,8 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct event_context *ev, connection_struct *conn); bool notify_internal_parent_init(TALLOC_CTX *mem_ctx); -NTSTATUS notify_add(struct notify_context *notify, struct notify_entry *e0, +NTSTATUS notify_add(struct notify_context *notify, connection_struct *conn, + struct notify_entry *e0, void (*callback)(void *, const struct notify_event *), void *private_data); NTSTATUS notify_remove(struct notify_context *notify, void *private_data); |