mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
LibArchive: Move loading the next tar header into a helper function
This now also validates the first header that is loaded, so we can drop the corresponding FIXME from `tar`.
This commit is contained in:
parent
cbeaba0c12
commit
fd3a823a20
4 changed files with 9 additions and 16 deletions
|
@ -88,11 +88,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}());
|
||||
|
||||
auto tar_stream = TRY(Archive::TarInputStream::construct(move(input_stream)));
|
||||
// FIXME: implement ErrorOr<TarInputStream>?
|
||||
if (!tar_stream->valid()) {
|
||||
warnln("the provided file is not a well-formatted ustar file");
|
||||
return 1;
|
||||
}
|
||||
|
||||
HashMap<String, String> global_overrides;
|
||||
HashMap<String, String> local_overrides;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue