From 1cc7abf8aada94be6f35f1f81edd248801d8fe5a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 22 Mar 2012 14:58:24 +0100 Subject: s3: Remove the sys_notify dependency from notify_internal Autobuild-User: Volker Lendecke Autobuild-Date: Fri Mar 23 12:12:51 CET 2012 on sn-devel-104 --- source3/smbd/service.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'source3/smbd/service.c') diff --git a/source3/smbd/service.c b/source3/smbd/service.c index d28a51a9a7..867776571b 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -698,11 +698,15 @@ static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn, on_err_call_dis_hook = true; if ((!conn->printer) && (!conn->ipc) && - lp_change_notify(conn->params) && - sconn->notify_ctx == NULL) { - sconn->notify_ctx = notify_init(sconn, - sconn->msg_ctx, - sconn->ev_ctx); + lp_change_notify(conn->params)) { + if (sconn->notify_ctx == NULL) { + sconn->notify_ctx = notify_init( + sconn, sconn->msg_ctx, sconn->ev_ctx); + } + if (sconn->sys_notify_ctx == NULL) { + sconn->sys_notify_ctx = sys_notify_context_create( + sconn, sconn->ev_ctx); + } } /* -- cgit