mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Kernel: Return ESPIPE when seeking an unseekable
This is what Dr. POSIX says it should do.
This commit is contained in:
committed by
Andreas Kling
parent
5431e81bc3
commit
799f6f4ec6
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user