r25430: Add the loadparm context to all parametric options.
[ab/samba.git/.git] / source4 / ntvfs / sysdep / inotify.c
index afeb319b353286b7dbc7ca0c3ca23a97b0676f11..191212580b62b1f0fe7d249133ce4cb5a8d2dac8 100644 (file)
@@ -27,6 +27,7 @@
 #include "lib/events/events.h"
 #include "lib/util/dlinklist.h"
 #include "libcli/raw/smb.h"
+#include "param/param.h"
 
 #include <linux/inotify.h>
 #include <asm/unistd.h>
@@ -244,7 +245,7 @@ static NTSTATUS inotify_setup(struct sys_notify_context *ctx)
 {
        struct inotify_private *in;
 
-       if (!lp_parm_bool(-1, "notify", "inotify", True)) {
+       if (!lp_parm_bool(global_loadparm, NULL, "notify", "inotify", true)) {
                return NT_STATUS_INVALID_SYSTEM_SERVICE;
        }