From owner-cvs-src@FreeBSD.ORG Fri Aug 15 14:56:10 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 D1B2D37B401; Fri, 15 Aug 2003 14:56:10 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B34F43FCB; Fri, 15 Aug 2003 14:56:10 -0700 (PDT) (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 h7FLuA0U093615; Fri, 15 Aug 2003 14:56:10 -0700 (PDT) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7FLuAPR093614; Fri, 15 Aug 2003 14:56:10 -0700 (PDT) Message-Id: <200308152156.h7FLuAPR093614@repoman.freebsd.org> From: Robert Watson Date: Fri, 15 Aug 2003 14:56:10 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 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: Fri, 15 Aug 2003 21:56:11 -0000 rwatson 2003/08/15 14:56:10 PDT FreeBSD src repository Modified files: (Branch: RELENG_4) usr.bin/finger lprint.c sprint.c util.c Log: MFC: lprint.c:1.24, sprintf.c:1.22, util.c:1.21 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. Requested by: Jonathan Chen Revision Changes Path 1.10.2.5 +2 -1 src/usr.bin/finger/lprint.c 1.11.2.6 +5 -0 src/usr.bin/finger/sprint.c 1.8.2.7 +14 -1 src/usr.bin/finger/util.c