mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +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
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);
|
||||
if (!m_file->is_seekable())
|
||||
return -EINVAL;
|
||||
return -ESPIPE;
|
||||
|
||||
off_t new_offset;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue