From: Kern Sibbald Date: Thu, 20 Sep 2007 16:31:25 +0000 (+0000) Subject: Fix ANSI tape reading X-Git-Tag: Release-3.0.0~2488 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=47a7f2dd6cbb70e6bfdf4e4bac0160ddea3e7825;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 */