1
Fork 0
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:
Sergey Bugaev 2020-05-22 19:33:57 +03:00 committed by Andreas Kling
parent 5431e81bc3
commit 799f6f4ec6

View file

@ -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;