s3: Pass "conn" to sys_notify_watch()
authorVolker Lendecke <vl@samba.org>
Wed, 21 Mar 2012 10:47:50 +0000 (11:47 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 21 Mar 2012 11:52:09 +0000 (12:52 +0100)
source3/smbd/notify.c
source3/smbd/notify_internal.c
source3/smbd/proto.h

index 80a79a65936ae89a4630592b264b8752a8078a8a..e9349f65313b0e9b64754b3e619b55c166c96af9 100644 (file)
@@ -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);
 }
 
index 8c2e8016d17186bf0a12637f3e9b8a31c94a2f50..3fa5d32776fe0934d27a9fefe0fb1d560b4f4ad1 100644 (file)
@@ -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)) {
index 2530456dd0af2793d7eb39d4906c96281f962401..1f764034865dfb359795cb2e6cd0fb01631a8242 100644 (file)
@@ -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,