mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user