diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-01 23:45:35 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-05 12:53:29 +0100 |
commit | 0a36d1459abc088d569656354c923c3070427eca (patch) | |
tree | 772a53e9338d0d04a90fe3bc4fb4f66cc75043f8 /Kernel/Net/LocalSocket.cpp | |
parent | 8595fd585df7e00447da5792e0f96987bf3d8f21 (diff) | |
download | serenity-0a36d1459abc088d569656354c923c3070427eca.zip |
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.
Diffstat (limited to 'Kernel/Net/LocalSocket.cpp')
-rw-r--r-- | Kernel/Net/LocalSocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index 2fdb923210..dbb14078e6 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -429,7 +429,7 @@ ErrorOr<void> LocalSocket::ioctl(OpenFileDescription& description, unsigned requ } } - return ENOTTY; + return EINVAL; } ErrorOr<void> LocalSocket::chmod(OpenFileDescription&, mode_t mode) |