X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Flist.c;h=e5e187f2a78ea332328217f51f6c2a43d3834c41;hb=14e8c10222cea224f47214339fe9bd61f19ebfbc;hp=80ea0e19bc7dfb1d296968a9d329da6eaff27223;hpb=01decb5737f34944a21b2ecd6cba3e3e9ffc6b67;p=chaz%2Ftar diff --git a/src/list.c b/src/list.c index 80ea0e1..e5e187f 100644 --- a/src/list.c +++ b/src/list.c @@ -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; }