From 52bfb8a300be34796bf7da420f11244ce4b4a9b9 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 19 Jun 2008 09:44:37 +0000 Subject: [PATCH] ebl Fix bug when restoring with a wrong mediatype git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7168 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/acquire.c | 2 ++ bacula/technotes-2.5 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bacula/src/stored/acquire.c b/bacula/src/stored/acquire.c index 9823d4bb2c..eaa09acead 100644 --- a/bacula/src/stored/acquire.c +++ b/bacula/src/stored/acquire.c @@ -331,6 +331,8 @@ get_out: */ if (dev->is_blocked()) { dev->dunblock(DEV_LOCKED); + } else { + dev->dunlock(); /* dunblock() unlock the device too */ } Dmsg1(950, "jcr->dcr=%p\n", jcr->dcr); return ok; diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 5c5b884c2e..e812355fd9 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -25,6 +25,8 @@ vtape driver General: +19Jun08 +ebl Fix a bug when restoring with a wrong mediatype. 18Jun08 kes Eliminate ints from conf files and structures to avoid word alignment problems -- 2.39.5