mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:57:36 +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);
|
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