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
commit 0a36d1459a
Notes: sideshowbarker 2024-07-17 23:10:58 +09:00

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)