mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
Kernel: Return ESPIPE when seeking an unseekable
This is what Dr. POSIX says it should do.
This commit is contained in:
parent
5431e81bc3
commit
799f6f4ec6
Notes:
sideshowbarker
2024-07-19 06:15:05 +09:00
Author: https://github.com/bugaevc
Commit: 799f6f4ec6
Pull-request: https://github.com/SerenityOS/serenity/pull/2331
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ off_t FileDescription::seek(off_t offset, int whence)
|
||||||
{
|
{
|
||||||
LOCKER(m_lock);
|
LOCKER(m_lock);
|
||||||
if (!m_file->is_seekable())
|
if (!m_file->is_seekable())
|
||||||
return -EINVAL;
|
return -ESPIPE;
|
||||||
|
|
||||||
off_t new_offset;
|
off_t new_offset;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue