X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Flist.c;h=2148990f7d7cb57536db59bcdecf623c90d56d94;hb=dcb7c93527b510b07c7b1118406f76a11c7c4da1;hp=5b06e80ecb9b7a27115fb5e5154934d25170918c;hpb=7645d20465e8c37f8f246b7490cbffbb0107045d;p=chaz%2Ftar diff --git a/src/list.c b/src/list.c index 5b06e80..2148990 100644 --- a/src/list.c +++ b/src/list.c @@ -73,7 +73,7 @@ read_and (void (*do_something) (void)) name_gather (); open_archive (ACCESS_READ); - while (1) + do { prev_status = status; status = read_header (false); @@ -113,7 +113,7 @@ read_and (void (*do_something) (void)) skip_member (); continue; } - } + } (*do_something) (); continue; @@ -168,6 +168,7 @@ read_and (void (*do_something) (void)) } break; } + while (!all_names_found (¤t_stat_info)); close_archive (); names_notfound (); /* print names not found */