butc-notice-eot-20030723
authorDerrick Brashear <shadow@dementia.org>
Wed, 23 Jul 2003 17:30:11 +0000 (17:30 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 23 Jul 2003 17:30:11 +0000 (17:30 +0000)
if we're going to check for BUTM_EOT, have a chance in hell of finding it.
and not, say, 0.

src/butc/dump.c

index 7ab911e..603d0be 100644 (file)
@@ -473,6 +473,7 @@ dumpVolume(struct tc_dumpDesc * curDump, struct dumpRock * dparamsPtr)
      * If we hit the end, see if this is the first volume on the tape or not.
      * Also, mark the tape as finished if the tape contains other dumps.
      */
+    if (!code) code = rc;
     if (HITEOT(code)) {
        ErrorLog(2, taskId, code, tapeInfoPtr->error,
                 "Warning: Dump (%s) hit end-of-tape inferred\n",