Subject: bin/1926: typo in usr.sbin/lpr/pac/pac.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <soda@sra.co.jp>
List: netbsd-bugs
Date: 01/11/1996 06:18:56
>Number:         1926
>Category:       bin
>Synopsis:       typo in usr.sbin/lpr/pac/pac.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 10 16:05:01 1996
>Last-Modified:
>Originator:     Noriyuki Soda
>Organization:
	Software Research Associates, Inc., Japan
>Release:        1.1A
>Environment:
	NetBSD-1.1A, Jan 10, 1996

>Description:
	TYPO in /usr/src/usr.sbin/lpr/pac/pac.c.
	This makes first character of username missing on pac output,
	if the first character is 't'.

>How-To-Repeat:
	run `lpr' and look `pac' output on user account which first 
	character is 't'.

>Fix:
	This problem and fix is first reported on FreeBSD-user mailing-list
	in Japan, by Kenji Tomita <tommy@mdc.tijp.ti.com>.

---- CUT HERE ---- CUT HERE ---- CUT HERE ---- CUT HERE ---- CUT HERE  ----
--- pac.c-	Tue Dec 12 05:57:29 1995
+++ pac.c	Thu Jan 11 05:59:00 1996
@@ -211,7 +211,7 @@
 
 	while (fgets(linebuf, BUFSIZ, acct) != NULL) {
 		cp = linebuf;
-		while (any(*cp, " t\t"))
+		while (any(*cp, " \t"))
 			cp++;
 		t = atof(cp);
 		while (any(*cp, ".0123456789"))
---- CUT HERE ---- CUT HERE ---- CUT HERE ---- CUT HERE ---- CUT HERE  ----
--
soda@sra.co.jp		Software Research Associates, Inc., Japan
(Noriyuki Soda)		   software tools and technology group

>Audit-Trail:
>Unformatted: