cvs commit: src/usr.bin/finger lprint.c sprint.c util.c
Robert Watson
rwatson at FreeBSD.org
Fri Aug 15 14:56:11 PDT 2003
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 at 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
More information about the cvs-src
mailing list