diff options
Diffstat (limited to 'drivers/tty/pty.c')
-rw-r--r-- | drivers/tty/pty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c index 40ff2bf68b43..755600f6120f 100644 --- a/drivers/tty/pty.c +++ b/drivers/tty/pty.c | |||
@@ -440,6 +440,8 @@ static int pty_bsd_ioctl(struct tty_struct *tty, | |||
440 | return pty_get_pktmode(tty, (int __user *)arg); | 440 | return pty_get_pktmode(tty, (int __user *)arg); |
441 | case TIOCSIG: /* Send signal to other side of pty */ | 441 | case TIOCSIG: /* Send signal to other side of pty */ |
442 | return pty_signal(tty, (int) arg); | 442 | return pty_signal(tty, (int) arg); |
443 | case TIOCGPTN: /* TTY returns ENOTTY, but glibc expects EINVAL here */ | ||
444 | return -EINVAL; | ||
443 | } | 445 | } |
444 | return -ENOIOCTLCMD; | 446 | return -ENOIOCTLCMD; |
445 | } | 447 | } |