1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibArchive: Pass along errors from Tar header checksum validation

This commit is contained in:
Tim Schumacher 2022-11-28 19:11:30 +01:00 committed by Andreas Kling
parent fd3a823a20
commit cb48b9bc30
2 changed files with 5 additions and 8 deletions

View file

@ -36,7 +36,7 @@ public:
static ErrorOr<NonnullOwnPtr<TarInputStream>> construct(NonnullOwnPtr<Core::Stream::Stream>);
ErrorOr<void> advance();
bool finished() const { return m_stream->is_eof(); }
bool valid() const;
ErrorOr<bool> valid() const;
TarFileHeader const& header() const { return m_header; }
TarFileStream file_contents();