mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Use make_dev_credf(MAKEDEV_REF) instead of make_dev() from pty clone handler.
Debugging help and testing by: Peter Holm Approved by: re (kensmith)
This commit is contained in:
parent
0a9c2b6db8
commit
8a5d7ef25c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171185
@ -785,9 +785,8 @@ pty_clone(void *arg, struct ucred *cr, char *name, int namelen,
|
||||
u += name[4] - 'a' + 10;
|
||||
else
|
||||
return;
|
||||
*dev = make_dev_cred(&ptc_cdevsw, u, cr,
|
||||
*dev = make_dev_credf(MAKEDEV_REF, &ptc_cdevsw, u, cr,
|
||||
UID_ROOT, GID_WHEEL, 0666, "pty%c%r", names[u / 32], u % 32);
|
||||
dev_ref(*dev);
|
||||
(*dev)->si_flags |= SI_CHEAPCLONE;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user