From: Eric Bollengier Date: Tue, 23 Nov 2010 18:00:44 +0000 (+0100) Subject: Ensure that two plugins starting with the same name won't share events X-Git-Tag: Release-7.0.0~1352 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e2e6494ff3176788971db3f591ad0c4e81ac65eb;p=bacula%2Fbacula Ensure that two plugins starting with the same name won't share events --- diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 181a415821..d57faacf66 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -538,7 +538,7 @@ bool plugin_name_stream(JCR *jcr, char *name) foreach_alist(plugin, plugin_list) { bEvent event; Dmsg3(dbglvl, "plugin=%s cmd=%s len=%d\n", plugin->file, cmd, len); - if (strncmp(plugin->file, cmd, len) != 0) { + if ((plugin->len != len) || (strncmp(plugin->file, cmd, len) != 0)) { i++; continue; }