From owner-cvs-src@FreeBSD.ORG Wed Apr 2 12:22:29 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAAC337B401; Wed, 2 Apr 2003 12:22:29 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D48443FCB; Wed, 2 Apr 2003 12:22:29 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h32KMT0U020849; Wed, 2 Apr 2003 12:22:29 -0800 (PST) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h32KMT8e020848; Wed, 2 Apr 2003 12:22:29 -0800 (PST) Message-Id: <200304022022.h32KMT8e020848@repoman.freebsd.org> From: Robert Watson Date: Wed, 2 Apr 2003 12:22:29 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/finger lprint.c sprint.c util.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 20:22:30 -0000 rwatson 2003/04/02 12:22:29 PST FreeBSD src repository Modified files: usr.bin/finger lprint.c sprint.c util.c Log: If stat() on the terminal specified in utmp fails due to ENOENT, don't print a warning, and set the idletime variable for the entry to -1; then pick up the -1 later in sprint() and lprint() and ignore those idle times by printing just whitespace. When third party applications, such as kdm, insert utmp entries, they sometimes use strings like ":0", which can't be stat()'d and currently result in warnings that are not helpful to the user. Revision Changes Path 1.24 +2 -1 src/usr.bin/finger/lprint.c 1.22 +5 -0 src/usr.bin/finger/sprint.c 1.21 +14 -1 src/usr.bin/finger/util.c