From 4c0b19957f35730d5b76cc2d169ba76711097f37 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Mon, 30 Jan 2006 11:59:19 +0000 Subject: [PATCH] Move pts master devices into /dev/pty/ instead of littering /dev with them; this is more consistent with the placement of slaves in /dev/pts. The actual name doesn't matter as it's not part of the exposed API or used by libc. In some sense, it would be nice if these device nodes didn't have to have names in devfs at all. Suggested by: Stephen McKay --- sys/kern/tty_pts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c index 5a2f31a768a..a3ab97bb73d 100644 --- a/sys/kern/tty_pts.c +++ b/sys/kern/tty_pts.c @@ -851,8 +851,8 @@ pty_clone(void *arg, struct ucred *cred, char *name, int namelen, * an open() or we won't create a device". */ pt->pt_devc = devc = make_dev_cred(&ptc_cdevsw, - NUM_TO_MINOR(pt->pt_num), cred, UID_ROOT, GID_WHEEL, 0666, "pty%d", - pt->pt_num); + NUM_TO_MINOR(pt->pt_num), cred, UID_ROOT, GID_WHEEL, 0666, + "pty/%d", pt->pt_num); dev_ref(devc); devc->si_drv1 = pt;