Date: Fri, 15 Aug 2003 14:56:10 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/finger lprint.c sprint.c util.c Message-ID: <200308152156.h7FLuAPR093614@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <jonc@chen.org.nz> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308152156.h7FLuAPR093614>