]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
metaplugin: Fix prepare_backend regression.
authorRadosław Korzeniewski <radekk@inteos.pl>
Fri, 8 Jan 2021 16:35:08 +0000 (17:35 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:00 +0000 (09:03 +0100)
bacula/src/plugins/fd/pluginlib/metaplugin.cpp

index de2870621b7c2127ca73a5c7cabe5a501f9e890b..c365b148ad441c5e3f62dda36114aa08973e8680 100644 (file)
@@ -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);