From owner-cvs-src-old@FreeBSD.ORG Thu Feb 12 19:00:28 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91A641065701 for ; Thu, 12 Feb 2009 19:00:28 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 655778FC1B for ; Thu, 12 Feb 2009 19:00:28 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1CJ0S3A095622 for ; Thu, 12 Feb 2009 19:00:28 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1CJ0S8v095621 for cvs-src-old@freebsd.org; Thu, 12 Feb 2009 19:00:28 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200902121900.n1CJ0S8v095621@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Thu, 12 Feb 2009 19:00:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/gen ttyslot.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 19:00:28 -0000 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