From dufault@hda.com  Fri Dec 23 12:57:08 1994
Received: from hda.com (hda.com [199.232.40.182]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id MAA05410 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Dec 1994 12:57:06 GMT
Received: (dufault@localhost) by hda.com (8.6.9/8.3) id HAA13339; Fri, 23 Dec 1994 07:58:54 -0500
Message-Id: <199412231258.HAA13339@hda.com>
Date: Fri, 23 Dec 1994 07:58:54 -0500
From: Peter Dufault <dufault@hda.com>
Reply-To: dufault@hda.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: ranlib broke for odd-length long filenames at end of archive
X-Send-Pr-Version: 3.2

>Number:         82
>Category:       bin
>Synopsis:       ranlib broke for odd-length long filenames at end of archive
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    core (FreeBSD core team)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 23 05:00:00 1994
>Closed-Date:    Thu Jan 12 14:24:41 PST 1995
>Last-Modified:
>Originator:     Peter &
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
Peter Dufault               Real Time Machine Control and Simulation
HD Associates, Inc.         Voice: 508 433 6936
dufault@hda.com             Fax:   508 433 5267
++++ New e-mail address.  E-mail problems? Tell hdslip@iii.net
>Environment:

	-current

>Description:

ranlib breaks on long odd-length filenames when the file is the last one in
the archive.  The bug is in ar/archive.c:copy_ar.

>How-To-Repeat:

Try this script:
#!/bin/csh
set F=0123456789ABCDE

cp /dev/null ${F}.c
cc -c ${F}.c
rm -f libfoo.a
ar cq libfoo.a ${F}.o
ranlib libfoo.a

rm -f ${F}.c ${F}.o

>Fix:
	
I don't have time to find it now.  I will look into it later; maybe
someone else has time to track it down now.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Thu Jan 12 14:24:41 PST 1995 
State-Changed-Why:  
Nate's changes supposedly fixed this problem. 
>Unformatted:



