From curt@NewsReader.Com  Tue Dec  8 10:50:44 1998
Received: from NewsReader.Com (h4.kcwc.com [206.139.252.5])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA27637
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 8 Dec 1998 10:50:43 -0800 (PST)
          (envelope-from curt@NewsReader.Com)
Received: (from root@localhost) by NewsReader.Com (8.8.5/8.7.3) id NAA01103; Tue, 8 Dec 1998 13:50:30 -0500 (EST)
Message-Id: <199812081850.NAA01103@NewsReader.Com>
Date: Tue, 8 Dec 1998 13:50:30 -0500 (EST)
From: curt@kcwc.com
Reply-To: curt@kcwc.com
To: FreeBSD-gnats-submit@freebsd.org
Cc: curt@kcwc.com
Subject: od/hexdump bug with small zero filled files
X-Send-Pr-Version: 3.2

>Number:         9016
>Category:       bin
>Synopsis:       od/hexdump bug with small zero filled files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec  8 11:00:00 PST 1998
>Closed-Date:    Sat Dec 12 22:41:27 PST 1998
>Last-Modified:  Sat Dec 12 22:41:51 PST 1998
>Originator:     Curt Welch
>Release:        FreeBSD 2.2-970903-RELENG i386
>Organization:
KCW Consulting
>Environment:

	Bug is in 3.0-19981103-SNAP also

>Description:

	When you do an od/hexdump on a small file with less then 16 bytes of
	data all of zero value, it produces bogus output.  It prints a signle
	star showing multiple repeated lines of the same data but it never
	printed the first line of output like it should have.

	Old versions of Unix od never worked that way.

>How-To-Repeat:

	dd if=/dev/zero of=x bs=1 count=10
	od x

as in:

% dd if=/dev/zero of=x bs=1 count=10
10+0 records in
10+0 records out
10 bytes transferred in 0.000486 secs (20575 bytes/sec)
% od x
*

>Fix:
	
	Haven't looked at the source...

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dillon 
State-Changed-When: Sat Dec 12 22:41:27 PST 1998 
State-Changed-Why:  
committed fix to freebsd-current 
>Unformatted:
