diff --git a/source/ntvfs/common/notify.c b/source/ntvfs/common/notify.c index e0d48d2b80f..a1f7e801191 100644 --- a/source/ntvfs/common/notify.c +++ b/source/ntvfs/common/notify.c @@ -77,7 +77,7 @@ static int notify_destructor(void *p) */ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, uint32_t server, struct messaging_context *messaging_ctx, - struct event_context *ev) + struct event_context *ev, int snum) { char *path; struct notify_context *notify; @@ -110,7 +110,7 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, uint32_t server, messaging_register(notify->messaging_ctx, notify, MSG_PVFS_NOTIFY, notify_handler); - notify->sys_notify_ctx = sys_notify_init(-1, notify, ev); + notify->sys_notify_ctx = sys_notify_init(snum, notify, ev); return notify; } diff --git a/source/ntvfs/posix/vfs_posix.c b/source/ntvfs/posix/vfs_posix.c index c0c1d6501c7..3e141219f41 100644 --- a/source/ntvfs/posix/vfs_posix.c +++ b/source/ntvfs/posix/vfs_posix.c @@ -188,7 +188,8 @@ static NTSTATUS pvfs_connect(struct ntvfs_module_context *ntvfs, pvfs->notify_context = notify_init(pvfs, pvfs->ntvfs->ctx->server_id, pvfs->ntvfs->ctx->msg_ctx, - event_context_find(pvfs)); + event_context_find(pvfs), + pvfs->ntvfs->ctx->config.snum); if (pvfs->notify_context == NULL) { return NT_STATUS_INTERNAL_DB_CORRUPTION; }