1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:37:34 +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:
Tim Schumacher 2022-11-28 19:07:39 +01:00 committed by Andreas Kling
parent cbeaba0c12
commit fd3a823a20
4 changed files with 9 additions and 16 deletions

View file

@ -45,6 +45,7 @@ public:
private:
TarInputStream(NonnullOwnPtr<Core::Stream::Stream>);
ErrorOr<void> load_next_header();
TarFileHeader m_header;
NonnullOwnPtr<Core::Stream::Stream> m_stream;