mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r18370: allow system inotify to be disabled
(This used to be commit 31bbf865a069f902dc979f469aec896d3d34422c)
This commit is contained in:
parent
35d30de095
commit
c4aaa094e7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user