Date: Fri, 27 Mar 2009 19:13:36 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/login login.c Message-ID: <200903271913.n2RJDnK2036140@repoman.freebsd.org>
index | next in thread | raw e-mail
ed 2009-03-27 19:13:36 UTC
FreeBSD src repository
Modified files:
usr.bin/login login.c
Log:
SVN rev 190474 on 2009-03-27 19:13:36Z by ed
Don't strip TTY device name to the last '/'.
We've seen this bug in other applications before: we have some
applications that use strrchr(tty, '/') on the TTY device name. This
isn't valid when using pts(4), because the device name will be stripped
to "0" instead of "pts/0".
This fixes issues with login(1) ignoring /etc/ttys and missing utmp
records.
Reported by: Barney Cordoba <barney_cordoba yahoo com>
Reviewed by: rwatson
Revision Changes Path
1.107 +2 -2 src/usr.bin/login/login.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903271913.n2RJDnK2036140>
