X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Flist.c;h=e5e187f2a78ea332328217f51f6c2a43d3834c41;hb=10edb315da532371e65a7d83a16f50ade5b545e4;hp=850faeb1e2e584434616b7d04d6e5a9f7a25db95;hpb=53eec8f0391a945334bfcd8c898267ac18af1120;p=chaz%2Ftar diff --git a/src/list.c b/src/list.c index 850faeb..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; } @@ -175,12 +179,9 @@ list_archive (void) { /* Print the header block. */ + decode_header (current_header, ¤t_stat_info, ¤t_format, 0); if (verbose_option) - { - if (verbose_option > 1) - decode_header (current_header, ¤t_stat_info, ¤t_format, 0); - print_header (-1); - } + print_header (-1); if (incremental_option && current_header->header.typeflag == GNUTYPE_DUMPDIR) {