Date: Sat, 30 Jan 1999 20:39:46 +0100 (CET) From: Stefan Eggers <seggers@semyam.dinoco.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: seggers@semyam.dinoco.de Subject: bin/9809: finger output format wrong Message-ID: <199901301939.UAA58823@semyam.dinoco.de>
index | next in thread | raw e-mail
>Number: 9809
>Category: bin
>Synopsis: finger output format wrong
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 30 11:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Stefan Eggers
>Release: FreeBSD 3.0-STABLE i386
>Organization:
none
>Environment:
3.0-stable from about last week (around January, 22nd).
>Description:
The "finger -s" output for people who never logged in is
incorrect. The "Idle" column for them is one character too small and
thus it doesn't line up correctly.
>How-To-Repeat:
Do a "finger -s" with an active account and one which never
was used. For example:
sh-2.02$ finger -s seggers uucp
Login Name TTY Idle Login Time Office Phone
seggers Stefan Eggers *v0 8 Sat 20:25
uucp UUCP pseudo-user * * No logins
>Fix:
I think this (untested) will have the desired effect:
Index: sprint.c
===================================================================
RCS file: /usr2/FreeBSD/CVSROOT/src/usr.bin/finger/sprint.c,v
retrieving revision 1.10
diff -u -r1.10 sprint.c
--- sprint.c 1997/07/02 06:34:50 1.10
+++ sprint.c 1999/01/30 19:31:44
@@ -109,7 +109,7 @@
pn->name, MAXREALNAME, namelen,
pn->realname ? pn->realname : "");
if (!w->loginat) {
- (void)printf(" * * No logins ");
+ (void)printf(" * * No logins ");
goto office;
}
(void)putchar(w->info == LOGGEDIN && !w->writable ?
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901301939.UAA58823>
