Date: Thu, 12 Feb 2009 19:00:13 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen ttyslot.c Message-ID: <200902121900.n1CJ0S8v095621@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2009-02-12 19:00:13 UTC
FreeBSD src repository
Modified files:
lib/libc/gen ttyslot.c
Log:
SVN rev 188534 on 2009-02-12 19:00:13Z by ed
Make ttyslot(3) work with pts(4) devices.
It seems ttyslot() calls rindex(), to strip the device name to the last
slash, but this is obviously invalid. /dev/pts/0 should be stripped
until pts/0. Because /etc/ttys only supports TTY names in /dev/, just
strip this piece of the pathname.
Revision Changes Path
1.6 +5 -6 src/lib/libc/gen/ttyslot.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902121900.n1CJ0S8v095621>
