diff options
| author | Volker Lendecke <vl@samba.org> | 2014-10-27 10:26:46 +0000 |
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 2014-12-09 04:12:08 +0100 |
| commit | 8a4948593840db0823c8f7c0ba4b60f7e07c3340 (patch) | |
| tree | fa0fd0de4cb0e8d281c3201b2bf3c30f7ab5ccdd /source3/modules | |
| parent | dc38f646af4582a3adffda20d7bb0e449df5e22e (diff) | |
| download | samba-8a4948593840db0823c8f7c0ba4b60f7e07c3340.tar.gz samba-8a4948593840db0823c8f7c0ba4b60f7e07c3340.tar.xz samba-8a4948593840db0823c8f7c0ba4b60f7e07c3340.zip | |
smbd: Move lp_parm_bool out of notify_inotify.c
Notifyd should be as independent of Samba infrastructure as possible,
and it will call notify_inotify
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules')
| -rw-r--r-- | source3/modules/vfs_default.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index f5b8f9be11..dad6bb7440 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -2119,6 +2119,9 @@ static NTSTATUS vfswrap_notify_watch(vfs_handle_struct *vfs_handle, */ #ifdef HAVE_INOTIFY if (lp_kernel_change_notify(vfs_handle->conn->params)) { + if (!lp_parm_bool(-1, "notify", "inotify", True)) { + return NT_STATUS_INVALID_SYSTEM_SERVICE; + } return inotify_watch(ctx, path, filter, subdir_filter, callback, private_data, handle); } |
