From e2e6494ff3176788971db3f591ad0c4e81ac65eb Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 23 Nov 2010 19:00:44 +0100 Subject: [PATCH] Ensure that two plugins starting with the same name won't share events --- bacula/src/filed/fd_plugins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5