|
@@ -148,12 +148,17 @@ load_plugins(struct pevent *pevent, const char *suffix,
|
|
char *path;
|
|
char *path;
|
|
char *envdir;
|
|
char *envdir;
|
|
|
|
|
|
|
|
+ if (pevent->flags & PEVENT_DISABLE_PLUGINS)
|
|
|
|
+ return;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* If a system plugin directory was defined,
|
|
* If a system plugin directory was defined,
|
|
* check that first.
|
|
* check that first.
|
|
*/
|
|
*/
|
|
#ifdef PLUGIN_DIR
|
|
#ifdef PLUGIN_DIR
|
|
- load_plugins_dir(pevent, suffix, PLUGIN_DIR, load_plugin, data);
|
|
|
|
|
|
+ if (!(pevent->flags & PEVENT_DISABLE_SYS_PLUGINS))
|
|
|
|
+ load_plugins_dir(pevent, suffix, PLUGIN_DIR,
|
|
|
|
+ load_plugin, data);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/*
|
|
/*
|