summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-12-12 02:01:56 +0000
committerJeremy Allison <jra@samba.org>2002-12-12 02:01:56 +0000
commitfaf89f214f326bc07f728b354062b2287cda1208 (patch)
tree34243a5af680b3911be2b7944158dc5ff6f39298 /source/smbd
parentb50816b500c4be0dda2cc79e0927d8a7dab65fd2 (diff)
downloadsamba-faf89f214f326bc07f728b354062b2287cda1208.tar.gz
samba-faf89f214f326bc07f728b354062b2287cda1208.tar.xz
samba-faf89f214f326bc07f728b354062b2287cda1208.zip
Added "kernel change notify" boolean to allow easier valgrind testing.
Jeremy.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/notify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/notify.c b/source/smbd/notify.c
index 0895ddaf878..de1b3317780 100644
--- a/source/smbd/notify.c
+++ b/source/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();