GNU bug report logs - #31280
zgrep foo binaryfilepath says "Binary file (standard input) matches"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: gzip; Reported by: jim.avera@HIDDEN; dated Fri, 27 Apr 2018 05:18:01 UTC; Maintainer for gzip is bug-gzip@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Apr 2018 05:17:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 27 01:17:35 2018
Received: from localhost ([127.0.0.1]:40840 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fBvlH-00040V-BS
	for submit <at> debbugs.gnu.org; Fri, 27 Apr 2018 01:17:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40908)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jim.avera@HIDDEN>) id 1fBv5F-0002up-Gp
 for submit <at> debbugs.gnu.org; Fri, 27 Apr 2018 00:34:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jim.avera@HIDDEN>) id 1fBv59-0003Ep-Dh
 for submit <at> debbugs.gnu.org; Fri, 27 Apr 2018 00:34:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:53728)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jim.avera@HIDDEN>) id 1fBv59-0003Ec-AJ
 for submit <at> debbugs.gnu.org; Fri, 27 Apr 2018 00:34:03 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60112)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jim.avera@HIDDEN>) id 1fBv58-0008Cc-6u
 for bug-gzip@HIDDEN; Fri, 27 Apr 2018 00:34:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jim.avera@HIDDEN>) id 1fBv53-0003A1-BD
 for bug-gzip@HIDDEN; Fri, 27 Apr 2018 00:34:02 -0400
Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]:46330)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <jim.avera@HIDDEN>) id 1fBv53-00038o-5V
 for bug-gzip@HIDDEN; Fri, 27 Apr 2018 00:33:57 -0400
Received: by mail-pf0-x22c.google.com with SMTP id p12so520401pff.13
 for <bug-gzip@HIDDEN>; Thu, 26 Apr 2018 21:33:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:reply-to:from:subject:message-id:date:user-agent:mime-version
 :content-transfer-encoding:content-language;
 bh=fpZzlBiF4h2LzwYLlkLYY/UnpBPCObCbGjITiQ/F8+w=;
 b=CirHxgqNQEG4ZWLwGc93esHGrnogQ4AfoxV4KEG2wHmRUNvaYyUqGyhjvJ32lq4dUh
 nJw4nHDZbwSRootnJGht1O2UiYiBQp1dD3CgU6sYyIb4b8ytPiAw2samU1KaYoFLh/xp
 5AU9Zxy8jpwjqJ7JDyPNoXAkGFSEcRjuNa8gthsiycPWMkhpsEnBIc4Ba4nIQ/LUaukA
 G2WCN8x7GlbmLglVxsFk1IVJCMQChs9KtTb31sPxvUCdkeP2pQoe5O+RwmnRjVIFMvbz
 z24WT4xgBCuAhS+04T/k+h8aZ5e7wRFNbtz/120TB/dDqJoITI/2C9Z27xsRGxYKR2kU
 VV3Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:reply-to:from:subject:message-id:date
 :user-agent:mime-version:content-transfer-encoding:content-language;
 bh=fpZzlBiF4h2LzwYLlkLYY/UnpBPCObCbGjITiQ/F8+w=;
 b=t5OWyQiwedBXBey1P20Kcw9k8AjrlGXEVVRFBPnPTny88I9iQKKqJKG4lD1/wnFnYQ
 vSnl5F7kcn6kWdVuJl4gmwHi65e+kNbrpWnUPrfpMdXOxuPbMTooj8L9iyMGN1S05yl8
 71iNNmdtTTzcc0+2/gvMoY7Vo6hUjVoX7y8rmdnU+YPaKzWCnokiWvZOjtXqLJPOGqyP
 WTuOnZjfIJXTU08f0Xgjq7ozAFfHpLbkQ0qLs2HsQD9twP8gtUMJLBzjB+XzSv0ScC98
 2u1Rh0GoT/vk6qQoLaRxiKswPUwUfiNTdaqq8kIyxfKLg1vJ4TuHLWapNtn0ZVyPA4/2
 I7sg==
X-Gm-Message-State: ALQs6tBC6WkEStO1vbcBK7JZfbmFDH2pTVBdN2qeL3pAW26NV3uvX/CB
 rY0FarHPz/eJOJ+cpm1h8q1SgBSp
X-Google-Smtp-Source: AB8JxZrSDFSX8whvju34J4UiLjY7QHGXtCU952sArq5fBw5w3tG+yvW6S1kO9s1bVTMRKWc4c2lvVQ==
X-Received: by 2002:a63:755c:: with SMTP id f28-v6mr815249pgn.30.1524803635561; 
 Thu, 26 Apr 2018 21:33:55 -0700 (PDT)
Received: from [192.168.1.106] (c-73-71-160-195.hsd1.ca.comcast.net.
 [73.71.160.195])
 by smtp.googlemail.com with ESMTPSA id y14sm623173pfe.172.2018.04.26.21.33.54
 for <bug-gzip@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 26 Apr 2018 21:33:54 -0700 (PDT)
To: bug-gzip@HIDDEN
From: Jim Avera <jim.avera@HIDDEN>
Subject: zgrep foo binaryfilepath says "Binary file (standard input) matches"
Message-ID: <0e5e6d14-005b-1e22-ecc9-9eeca9687de7@HIDDEN>
Date: Thu, 26 Apr 2018 21:33:54 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101
 Thunderbird/57.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 27 Apr 2018 01:17:33 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: jim.avera@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Hello,

There is a bug in zgrep (gzip) 1.6 where the output from zgrep 
incorrectly says  "(standard input") instead the file path name given on 
the command line.

This happens if the input data is not actually compressed, but is binary 
data.

STEPS TO REPRODUCE:

perl -wE 'print "foobar",("\x0" x 1000)' > /tmp/testfile.dat  # make a 
binary file
zgrep foobar /tmp/testfile.dat

RESULTS:

Binary file (standard input) matches

EXPECTED RESULTS:

Binary file /tmp/testfile.dat matches





Acknowledgement sent to jim.avera@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gzip@HIDDEN. Full text available.
Report forwarded to bug-gzip@HIDDEN:
bug#31280; Package gzip. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.