summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-04-28 21:39:57 +0000
committerrwatson <rwatson@FreeBSD.org>2006-04-28 21:39:57 +0000
commit18166a0696fd80f000fbec4c13f4d98ed037af1b (patch)
tree0ed546220620c4cae0dff54f1bf91eb04fe65a23 /sys
parentb2cf5a1a9a36661d6138cd0e5f71012c0bc9853f (diff)
downloadFreeBSD-src-18166a0696fd80f000fbec4c13f4d98ed037af1b.zip
FreeBSD-src-18166a0696fd80f000fbec4c13f4d98ed037af1b.tar.gz
Also check use_pty in the ptmx clone lookup; this means that when ptmx
support is turned off using the sysctl, we no longer even allow the ptmx device to be looked up. Foot provided by: peter
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty_pts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c
index aa31904..942b77f 100644
--- a/sys/kern/tty_pts.c
+++ b/sys/kern/tty_pts.c
@@ -829,6 +829,9 @@ pty_clone(void *arg, struct ucred *cred, char *name, int namelen,
struct pt_desc *pt;
struct cdev *devc;
+ if (!use_pts)
+ return;
+
if (*dev != NULL)
return;
OpenPOWER on IntegriCloud