]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Skip storage daemon detection if the information is not available in the BSR
authorEric Bollengier <eric@baculasystems.com>
Mon, 23 May 2022 10:09:18 +0000 (12:09 +0200)
committerEric Bollengier <eric@baculasystems.com>
Fri, 27 May 2022 08:32:22 +0000 (10:32 +0200)
bacula/src/dird/restore.c

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