mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibCore: Return EBADF
on unsupported stream operations
This commit is contained in:
parent
e65767c2e7
commit
1ca62de558
Notes:
sideshowbarker
2024-07-17 01:31:54 +09:00
Author: https://github.com/timschumi
Commit: 1ca62de558
Pull-request: https://github.com/SerenityOS/serenity/pull/17058
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/gmta ✅
6 changed files with 9 additions and 8 deletions
|
@ -49,7 +49,7 @@ void FixedMemoryStream::close()
|
|||
|
||||
ErrorOr<void> FixedMemoryStream::truncate(off_t)
|
||||
{
|
||||
return Error::from_errno(ENOTSUP);
|
||||
return Error::from_errno(EBADF);
|
||||
}
|
||||
|
||||
ErrorOr<Bytes> FixedMemoryStream::read(Bytes bytes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue