]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-butc-notice-eot-20030723
authorDerrick Brashear <shadow@dementia.org>
Wed, 23 Jul 2003 17:30:36 +0000 (17:30 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 23 Jul 2003 17:30:36 +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.

(cherry picked from commit 1a2fa8bd5cca6d69f13b5da47cc175d6337dabcd)

src/butc/dump.c

index 10fdc67c85f80957c2d2ac5b1dd8b2beead8c532..8707d93c068ec6eb4adb7ed55b7f1fc8ffdb0a45 100644 (file)
@@ -455,6 +455,7 @@ error_exit:
      * 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",