mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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:
parent
8595fd585d
commit
0a36d1459a
Notes:
sideshowbarker
2024-07-17 23:10:58 +09:00
Author: https://github.com/IdanHo
Commit: 0a36d1459a
Pull-request: https://github.com/SerenityOS/serenity/pull/11152
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -429,7 +429,7 @@ ErrorOr<void> LocalSocket::ioctl(OpenFileDescription& description, unsigned requ
|
|||
}
|
||||
}
|
||||
|
||||
return ENOTTY;
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
ErrorOr<void> LocalSocket::chmod(OpenFileDescription&, mode_t mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue