summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pts.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-01-04 20:59:52 +0000
committered <ed@FreeBSD.org>2010-01-04 20:59:52 +0000
commit74b0526bbe6326adb72e26dabfe79ab1fe00ca4b (patch)
tree1eba0ba44627857020e0992392e2861b5b457b44 /sys/kern/tty_pts.c
parent40024ff7c3bf948cb45283aec877bd552ee934d7 (diff)
downloadFreeBSD-src-74b0526bbe6326adb72e26dabfe79ab1fe00ca4b.zip
FreeBSD-src-74b0526bbe6326adb72e26dabfe79ab1fe00ca4b.tar.gz
Make TIOCSTI work again.
It looks like I didn't implement this when I imported MPSAFE TTY. Applications like mail(1) still use this. I think it's conceptually bad. Tested by: Pete French <petefrench ticketswitch com> MFC after: 2 weeks
Diffstat (limited to 'sys/kern/tty_pts.c')
-rw-r--r--sys/kern/tty_pts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c
index 26946f5..632175b 100644
--- a/sys/kern/tty_pts.c
+++ b/sys/kern/tty_pts.c
@@ -379,7 +379,7 @@ ptsdev_ioctl(struct file *fp, u_long cmd, void *data,
/* Just redirect this ioctl to the slave device. */
tty_lock(tp);
- error = tty_ioctl(tp, cmd, data, td);
+ error = tty_ioctl(tp, cmd, data, fp->f_flag, td);
tty_unlock(tp);
if (error == ENOIOCTL)
error = ENOTTY;
OpenPOWER on IntegriCloud