From turutani@polymer3.scphys.kyoto-u.ac.jp  Thu Mar 15 11:01:14 2007
Return-Path: <turutani@polymer3.scphys.kyoto-u.ac.jp>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1074116A401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Mar 2007 11:01:14 +0000 (UTC)
	(envelope-from turutani@polymer3.scphys.kyoto-u.ac.jp)
Received: from polymer3.scphys.kyoto-u.ac.jp (polymer3.scphys.kyoto-u.ac.jp [130.54.55.55])
	by mx1.freebsd.org (Postfix) with ESMTP id A8A2013C458
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Mar 2007 11:01:11 +0000 (UTC)
	(envelope-from turutani@polymer3.scphys.kyoto-u.ac.jp)
Received: from polymer3.scphys.kyoto-u.ac.jp (localhost [127.0.0.1])
	by polymer3.scphys.kyoto-u.ac.jp (8.13.8/8.13.8/20060227-1) with ESMTP id l2FB147Y004104;
	Thu, 15 Mar 2007 20:01:04 +0900 (JST)
	(envelope-from turutani@polymer3.scphys.kyoto-u.ac.jp)
Received: (from turutani@localhost)
	by polymer3.scphys.kyoto-u.ac.jp (8.13.8/8.13.8/Submit) id l2FB146T004103;
	Thu, 15 Mar 2007 20:01:04 +0900 (JST)
	(envelope-from turutani)
Message-Id: <200703151101.l2FB146T004103@polymer3.scphys.kyoto-u.ac.jp>
Date: Thu, 15 Mar 2007 20:01:04 +0900 (JST)
From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Reply-To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: gzip -l returns wrong result.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         110329
>Category:       bin
>Synopsis:       gzip(1): gzip -l returns wrong result.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 15 11:10:02 GMT 2007
>Closed-Date:    Thu Mar 15 13:59:39 GMT 2007
>Last-Modified:  Fri Mar 23 02:00:11 GMT 2007
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD polymer3.scphys.kyoto-u.ac.jp 6.2-STABLE FreeBSD 6.2-STABLE #3: Mon Jan 15 16:38:16 JST 2007 turutani@polymer3.scphys.kyoto-u.ac.jp:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386


	
>Description:
	gzip -l returns wrong result about a file larger than 4GB.
	
>How-To-Repeat:
	% gzip -V
	FreeBSD gzip 20070126
	% ls -l foo.gz
	-rwxr--r--  1 turutani  users  3027177234  3 14 13:28 foo.gz
	% gzip -l foo.gz
	  compressed uncompressed  ratio uncompressed_name
	  3027177234   3894293504  22.2% foo.gz
	% gunzip foo.gz
	% ls -l foo
	-rwxr--r--  1 turutani  users  8189260800  3 14 13:28 foo
	
>Fix:
	gzip -l checks the ISIZE field to get uncompressed files size,
	and this field is *NOT* file size (see RFC1952).
	But it is too hard to get correct file size without deflation,
	it is better to mension about this specification to man page, I think.
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Thu Mar 15 13:59:38 UTC 2007 
State-Changed-Why:  
Please defer to the GNU-gzip people to get this corrected; it is 
contributed code from GNU and should not be changed within our local 
source tree. Thanks though for the willingness to help FreeBSD and show 
the power of the FreeBSD community. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110329 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/110329: commit references a PR
Date: Fri, 16 Mar 2007 03:51:00 +0000 (UTC)

 delphij     2007-03-16 03:50:54 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.bin/gzip         gzip.1 
   Log:
   Mention a limitation that was inherted from RFC1952, making
   it impossible to obtain correct file size from a file that
   is larger than 4GB before compression.
   
   PR:             bin/110329
   MFC after:      1 week
   
   Revision  Changes    Path
   1.2       +9 -1      src/usr.bin/gzip/gzip.1
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/110329: commit references a PR
Date: Fri, 23 Mar 2007 01:55:26 +0000 (UTC)

 delphij     2007-03-23 01:55:20 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     usr.bin/gzip         gzip.1 
   Log:
   MFC revision 1.2
   date: 2007/03/16 03:50:53;  author: delphij;  state: Exp;  lines: +9 -1
   Mention a limitation that was inherted from RFC1952, making
   it impossible to obtain correct file size from a file that
   is larger than 4GB before compression.
   
   PR:             bin/110329
   
   Revision  Changes    Path
   1.1.2.2   +9 -1      src/usr.bin/gzip/gzip.1
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
