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
This commit is contained in:
Robert Watson 2006-04-28 21:39:57 +00:00
parent 8f405ed335
commit 3bf14fd5e9

View File

@ -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;