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

LibCore: Return EBADF on unsupported stream operations

This commit is contained in:
Tim Schumacher 2022-12-14 14:30:58 +01:00 committed by Jelle Raaijmakers
parent e65767c2e7
commit 1ca62de558
6 changed files with 9 additions and 8 deletions

View file

@ -48,8 +48,7 @@ bool TarFileStream::is_eof() const
ErrorOr<size_t> TarFileStream::write(ReadonlyBytes)
{
// This is purely for wrapping and representing file contents in an archive.
VERIFY_NOT_REACHED();
return Error::from_errno(EBADF);
}
ErrorOr<NonnullOwnPtr<TarInputStream>> TarInputStream::construct(NonnullOwnPtr<Core::Stream::Stream> stream)