From: Radosław Korzeniewski Date: Fri, 8 Jan 2021 16:35:08 +0000 (+0100) Subject: metaplugin: Fix prepare_backend regression. X-Git-Tag: Release-11.3.2~721 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4476fb22794d0a92603fcc539f9d45362a1b1cf9;p=thirdparty%2Fbacula.git metaplugin: Fix prepare_backend regression. --- diff --git a/bacula/src/plugins/fd/pluginlib/metaplugin.cpp b/bacula/src/plugins/fd/pluginlib/metaplugin.cpp index de2870621..c365b148a 100644 --- a/bacula/src/plugins/fd/pluginlib/metaplugin.cpp +++ b/bacula/src/plugins/fd/pluginlib/metaplugin.cpp @@ -1044,7 +1044,7 @@ bRC METAPLUGIN::prepare_backend(bpContext *ctx, char type, char *command) } // check for prohibitted command duplication - if (backend.check_command(command)) + if (type != BACKEND_JOB_INFO_RESTORE && backend.check_command(command)) { // already exist, report DMSG1(ctx, DERROR, "Plugin command=%s already defined, cannot proceed.\n", command);