1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158126

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;