tar: fix current_block confusion

Problem reported by Robert Morris in:
https://lists.gnu.org/r/bug-tar/2024-03/msg00001.html
* src/delete.c (flush_file): Simply return at EOF,
so that current_block continues to point to end of input.
This commit is contained in:
Paul Eggert
2024-03-03 13:27:32 -08:00
parent 628c49250a
commit 883f2e6dca

View File

@@ -149,7 +149,7 @@ flush_file (void)
flush_archive ();
if (record_end == current_block)
/* Hit EOF */
break;
return;
}
current_block += blocks_to_skip;
}