summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorBaitinq <30861839+Baitinq@users.noreply.github.com>2021-03-31 22:58:41 +0200
committerGitHub <noreply@github.com>2021-03-31 22:58:41 +0200
commit19c578024bfb3a22e18650b48e0241042ad67d03 (patch)
tree1a69396f37e7edb56136093ba8c445cc342cf20f /Kernel
parent6718941715ae49c2f15804efbb4bd35412385de1 (diff)
downloadserenity-19c578024bfb3a22e18650b48e0241042ad67d03.zip
Kernel: Added TIOCSTI ioctl placeholder (#6037)
Added a dummy TIOCSTI ioctl placeholder. This is a dangerous ioctl that can be used to inject input into a tty. Added for compatibility. Always fails with EIO.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/TTY/TTY.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/TTY/TTY.cpp b/Kernel/TTY/TTY.cpp
index f7facde2b3..b4544e09bb 100644
--- a/Kernel/TTY/TTY.cpp
+++ b/Kernel/TTY/TTY.cpp
@@ -414,6 +414,8 @@ int TTY::ioctl(FileDescription&, unsigned request, FlatPtr arg)
case TIOCSCTTY:
current_process.set_tty(this);
return 0;
+ case TIOCSTI:
+ return -EIO;
case TIOCNOTTY:
current_process.set_tty(nullptr);
return 0;