From c4aaa094e7818e205641a7204a271474c58e453a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Sep 2006 07:56:23 +0000 Subject: r18370: allow system inotify to be disabled (This used to be commit 31bbf865a069f902dc979f469aec896d3d34422c) --- source4/ntvfs/sysdep/inotify.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/ntvfs/sysdep/inotify.c') diff --git a/source4/ntvfs/sysdep/inotify.c b/source4/ntvfs/sysdep/inotify.c index 62e9a387a1..a5104a01d0 100644 --- a/source4/ntvfs/sysdep/inotify.c +++ b/source4/ntvfs/sysdep/inotify.c @@ -253,6 +253,10 @@ static NTSTATUS inotify_setup(struct sys_notify_context *ctx) { struct inotify_private *in; + if (!lp_parm_bool(-1, "notify", "inotify", True)) { + return NT_STATUS_INVALID_SYSTEM_SERVICE; + } + in = talloc(ctx, struct inotify_private); NT_STATUS_HAVE_NO_MEMORY(in); in->fd = inotify_init(); -- cgit