From andrew@ugh.net.au  Wed Feb 27 19:31:58 2002
Return-Path: <andrew@ugh.net.au>
Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37])
	by hub.freebsd.org (Postfix) with ESMTP id 55F8A37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 27 Feb 2002 19:31:58 -0800 (PST)
Received: by starbug.ugh.net.au (Postfix, from userid 1000)
	id 7E36CA804; Thu, 28 Feb 2002 14:31:56 +1100 (EST)
Message-Id: <20020228033156.7E36CA804@starbug.ugh.net.au>
Date: Thu, 28 Feb 2002 14:31:56 +1100 (EST)
From: Andrew <andrew@ugh.net.au>
Reply-To: Andrew <andrew@ugh.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: pwd_mkdb doesn't indicate which line is too long
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35395
>Category:       bin
>Synopsis:       pwd_mkdb doesn't indicate which line is too long
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 27 19:40:01 PST 2002
>Closed-Date:    Fri Mar 8 19:52:18 PST 2002
>Last-Modified:  Fri Mar 08 19:52:28 PST 2002
>Originator:     Andrew
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
UgH!
>Environment:
System: FreeBSD starbug.ugh.net.au 4.5-STABLE FreeBSD 4.5-STABLE #4: Wed Jan 30 17:17:14 EST 2002 andrew@starbug.ugh.net.au:/usr/obj/usr/src/sys/STARBUG i386


	
>Description:

When pwd_mkdb complains that a line is too long it doesn't give the line
number making it hard to track down the problem (which alas isn't always
because a line is too long).

>How-To-Repeat:
	
>Fix:


--- /usr/src/usr.sbin/pwd_mkdb/pwd_mkdb.c	Sat Apr 15 13:32:00 2000
+++ pwd_mkdb.c	Thu Feb 28 14:27:15 2002
@@ -502,7 +502,7 @@
 	 *	-- The Who
 	 */
 	if (!(p = strchr(line, '\n'))) {
-		warnx("line too long");
+		warnx("line #%d too long", lcnt);
 		goto fmt;
 
 	}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Fri Mar 8 19:52:18 PST 2002 
State-Changed-Why:  
Patch applied, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35395 
>Unformatted:
