]> git.sur5r.net Git - bacula/bacula/commitdiff
Apply fix for bug 2049: wrong drive selected
authorUlrich Leodolter <ulrich.leodolter@obvsg.at>
Sat, 12 Apr 2014 08:06:50 +0000 (10:06 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 12 Apr 2014 08:07:51 +0000 (10:07 +0200)
bacula/src/stored/reserve.c

index 5f696a37cf7a8e466b77b46f8d496851611c55ee..30719a77b034449403ebbd530d18586b067f3960 100644 (file)
@@ -445,7 +445,7 @@ bool find_suitable_device_for_job(JCR *jcr, RCTX &rctx)
                }
                if (vol->dev->is_autochanger()) {
                   Dmsg1(dbglvl, "vol=%s is in changer\n", vol->vol_name);
-                  if (!is_vol_in_autochanger(rctx, vol) || vol->dev->autoselect) {
+                  if (!is_vol_in_autochanger(rctx, vol) || !vol->dev->autoselect) {
                      continue;
                   }
                } else if (strcmp(device_name, vol->dev->device->hdr.name) != 0) {