From 0a36d1459abc088d569656354c923c3070427eca Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Wed, 1 Dec 2021 23:45:35 +0200 Subject: [PATCH] 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. --- Kernel/Net/LocalSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 LocalSocket::ioctl(OpenFileDescription& description, unsigned requ } } - return ENOTTY; + return EINVAL; } ErrorOr LocalSocket::chmod(OpenFileDescription&, mode_t mode)