From: Eric Bollengier Date: Mon, 23 May 2022 10:09:18 +0000 (+0200) Subject: Skip storage daemon detection if the information is not available in the BSR X-Git-Tag: Release-13.0.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7de42de90aa6d46ac0eb6d1742cc26661731a917;p=thirdparty%2Fbacula.git Skip storage daemon detection if the information is not available in the BSR --- diff --git a/bacula/src/dird/restore.c b/bacula/src/dird/restore.c index f14880bda..7b49410f8 100644 --- a/bacula/src/dird/restore.c +++ b/bacula/src/dird/restore.c @@ -231,7 +231,11 @@ static bool check_for_new_storage(JCR *jcr, bootstrap_info &info) if (ua->argc != 1) { return false; } - if (!strcasecmp(ua->argk[0], "Storage")) { + if (strcasecmp(ua->argk[0], "Storage") == 0) { + if (strcmp(ua->argv[0], "") == 0) { + /* It can happen after a bscan */ + return false; + } /* Continue if this is a volume from the same storage. */ if (is_on_same_storage(jcr, ua->argv[0])) { return false;