Date: Tue, 14 Nov 2006 23:10:21 -0500 From: Kris Kennaway <kris@obsecurity.org> To: current@FreeBSD.org Subject: kern.pts.enable=1 forces tcsh autologout Message-ID: <20061115041021.GA97078@xor.obsecurity.org>
next in thread | raw e-mail | index | archive | help
--UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline When kern.pts.enable=1, the ptys are named /dev/pts/<n>, and tcsh doesn't correctly recognize that it's a pty and it should disable autologout. Actually it does seem to have some code but it seems to be incorrect: if (loginsh || (uid == 0)) { if (*cp) { /* only for login shells or root and we must have a tty */ if ((cp2 = Strrchr(cp, (Char) '/')) != NULL) { cp = cp2 + 1; } else cp2 = cp; if (!(((Strncmp(cp2, STRtty, 3) == 0) && Isalpha(cp2[3])) || ((Strncmp(cp, STRpts, 3) == 0) && cp[3] == '/'))) { if (getenv("DISPLAY") == NULL) { /* NOT on X window shells */ set(STRautologout, Strsave(STRdefautologout), VAR_READWRITE); } } } } Kris --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFWpMsWry0BWjoQKURAoJqAKCHMvd6rli9TYTqIocqC+1D9Ec3WgCaA1ga foY4eOCvMZKA044s4VMXOaA= =sY6f -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061115041021.GA97078>