]> Dogcows Code - chaz/tar/commitdiff
(read_and): Abort if HEADER_SUCCESS_EXTENDED occurs, as it's not
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 3 Sep 2003 06:15:32 +0000 (06:15 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 3 Sep 2003 06:15:32 +0000 (06:15 +0000)
possible.  Pass false to read_header, not 0.

src/list.c

index 80ea0e19bc7dfb1d296968a9d329da6eaff27223..e5e187f2a78ea332328217f51f6c2a43d3834c41 100644 (file)
@@ -76,10 +76,11 @@ read_and (void (*do_something) (void))
   while (1)
     {
       prev_status = status;
-      status = read_header (0);
+      status = read_header (false);
       switch (status)
        {
        case HEADER_STILL_UNREAD:
+       case HEADER_SUCCESS_EXTENDED:
          abort ();
 
        case HEADER_SUCCESS:
@@ -159,6 +160,9 @@ read_and (void (*do_something) (void))
            case HEADER_FAILURE:
              /* We are in the middle of a cascade of errors.  */
              break;
+
+           case HEADER_SUCCESS_EXTENDED:
+             abort ();
            }
          continue;
        }
This page took 0.027633 seconds and 4 git commands to generate.