From 986735a2f24cc83f2d797ef818ee0fea50d9edb4 Mon Sep 17 00:00:00 2001 From: Ulrich Leodolter Date: Sat, 12 Apr 2014 10:06:50 +0200 Subject: [PATCH] Apply fix for bug 2049: wrong drive selected --- bacula/src/stored/reserve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 5f696a37cf..30719a77b0 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -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) { -- 2.39.5