summaryrefslogtreecommitdiff
path: root/source3/smbd/notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/notify.c')
-rw-r--r--source3/smbd/notify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index 0895ddaf87..de1b331778 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -207,7 +207,8 @@ BOOL change_notify_set(char *inbuf, files_struct *fsp, connection_struct *conn,
BOOL init_change_notify(void)
{
#if HAVE_KERNEL_CHANGE_NOTIFY
- cnotify = kernel_notify_init();
+ if (lp_kernel_change_notify())
+ cnotify = kernel_notify_init();
#endif
if (!cnotify) cnotify = hash_notify_init();