1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 10:27:35 +00:00

Kernel: Return EINVAL on unsupported LocalSocket ioctl

ENOTTY is used to signify that no ioctl interface is provided at all,
but LocalSockets do support the FIONREAD ioctl.
This commit is contained in:
Idan Horowitz 2021-12-01 23:45:35 +02:00 committed by Andreas Kling
parent 8595fd585d
commit 0a36d1459a

View file

@ -429,7 +429,7 @@ ErrorOr<void> LocalSocket::ioctl(OpenFileDescription& description, unsigned requ
}
}
return ENOTTY;
return EINVAL;
}
ErrorOr<void> LocalSocket::chmod(OpenFileDescription&, mode_t mode)