From nobody@FreeBSD.org  Fri Jun  8 09:07:42 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F16071065674
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 Jun 2012 09:07:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id D79218FC22
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 Jun 2012 09:07:42 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q5897gJK068081
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 8 Jun 2012 09:07:42 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q5897g5U068080;
	Fri, 8 Jun 2012 09:07:42 GMT
	(envelope-from nobody)
Message-Id: <201206080907.q5897g5U068080@red.freebsd.org>
Date: Fri, 8 Jun 2012 09:07:42 GMT
From: Matthias Meyser <meyser@xenet.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: zless cant show 0 Byte compressed files
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         168839
>Category:       bin
>Synopsis:       zless cant show 0 Byte compressed files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 08 09:10:12 UTC 2012
>Closed-Date:    Mon Dec 17 06:47:21 UTC 2012
>Last-Modified:  Mon Dec 17 06:47:21 UTC 2012
>Originator:     Matthias Meyser
>Release:        9.0-STABLE
>Organization:
XeNET GmbH
>Environment:
FreeBSD serv04.xenet.de 9.0-STABLE FreeBSD 9.0-STABLE #0: Thu May 31 20:10:04 CEST 2012     root@iser01.intern:/usr/obj/usr/src/sys/SERV04  i386
>Description:
If you compress a 0 Byte File (empty logfile) with gzip
and try to display the content of the uncompressed file with zless
binary content of the archive ist displayed instead.
>How-To-Repeat:
echo -n >test.txt
gzip test.txt
gzip -l test.txt.gz
zcat test.txt.gz

<nothing shows up.>

zless test.txt.gz

<displays binary content of archive and not an empty file>

rm test.txt.gz
>Fix:


>Release-Note:
>Audit-Trail:

From: Andy Kosela <akosela@andykosela.com>
To: bug-followup@freebsd.org
Cc: meyser@xenet.de
Subject: Re: bin/168839: zless cant show 0 Byte compressed files
Date: Mon, 03 Dec 2012 21:00:08 +0100

 It is a behavior of GNU less(1) which differs here from zmore(1) which
 uses gzip(1) and zcat/gzip(1) itself.  We do not support GNU less(1) but
 this feature is desirable IMHO and you can request this change to the
 upstream.
 
 --Andy
Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: delphij 
Responsible-Changed-When: Mon Dec 3 21:43:13 UTC 2012 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168839 
State-Changed-From-To: open->patched 
State-Changed-By: delphij 
State-Changed-When: Mon Dec 3 21:49:47 UTC 2012 
State-Changed-Why:  
Patch applied against -HEAD as r243834, MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168839 
State-Changed-From-To: patched->closed 
State-Changed-By: delphij 
State-Changed-When: Mon Dec 17 06:47:01 UTC 2012 
State-Changed-Why:  
Fix have been delivered to all affected stable branches. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168839 
>Unformatted:
