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
commit 1ca62de558
Notes: sideshowbarker 2024-07-17 01:31:54 +09:00
6 changed files with 9 additions and 8 deletions

View file

@ -302,7 +302,7 @@ bool DeflateDecompressor::is_eof() const { return m_state == State::Idle && m_re
ErrorOr<size_t> DeflateDecompressor::write(ReadonlyBytes)
{
VERIFY_NOT_REACHED();
return Error::from_errno(EBADF);
}
bool DeflateDecompressor::is_open() const