Date: Wed, 2 Apr 2003 12:22:29 -0800 (PST) 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: <200304022022.h32KMT8e020848@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304022022.h32KMT8e020848>
