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-5.2.1~887 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8de6fb2ca537cf0a6ed6128643b4fd000c0cacf7;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; }