mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Remove last instance of global_loadparm.
This commit is contained in:
parent
1e053df95c
commit
a9dbd73b2f
@ -339,10 +339,6 @@ static NTSTATUS inotify_watch(struct sys_notify_context *ctx,
|
||||
/* maybe setup the inotify fd */
|
||||
if (ctx->private_data == NULL) {
|
||||
NTSTATUS status;
|
||||
if (!lp_parm_bool(global_loadparm, NULL, "notify", "inotify", true)) {
|
||||
return NT_STATUS_INVALID_SYSTEM_SERVICE;
|
||||
}
|
||||
|
||||
status = inotify_setup(ctx);
|
||||
NT_STATUS_NOT_OK_RETURN(status);
|
||||
}
|
||||
|
@ -71,6 +71,17 @@ _PUBLIC_ struct sys_notify_context *sys_notify_context_create(struct share_confi
|
||||
}
|
||||
|
||||
for (i=0;i<num_backends;i++) {
|
||||
char *enable_opt_name;
|
||||
bool enabled;
|
||||
|
||||
enable_opt_name = talloc_asprintf(mem_ctx, "notify:%s",
|
||||
backends[i].name);
|
||||
enabled = share_bool_option(scfg, enable_opt_name, true);
|
||||
talloc_free(enable_opt_name);
|
||||
|
||||
if (!enabled)
|
||||
continue;
|
||||
|
||||
if (strcasecmp(backends[i].name, bname) == 0) {
|
||||
bname = backends[i].name;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user