From: Kern Sibbald Date: Thu, 20 Sep 2007 16:31:25 +0000 (+0000) Subject: Fix ANSI tape reading X-Git-Tag: Release-7.0.0~5640 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e82fcfe993ff88929ee0173f087d22566344d3cf;p=bacula%2Fbacula Fix ANSI tape reading git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5614 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/block.c b/bacula/src/stored/block.c index d23182a7ee..9bca599f84 100644 --- a/bacula/src/stored/block.c +++ b/bacula/src/stored/block.c @@ -1013,7 +1013,7 @@ reread: /* Continue here for successful read */ block->read_len = stat; /* save length read */ - if (dev->at_eof() && block->read_len == 80 && + if (block->read_len == 80 && (dcr->VolCatInfo.LabelType != B_BACULA_LABEL || dcr->device->label_type != B_BACULA_LABEL)) { /* ***FIXME*** should check label */