Your message dated Sun, 10 Jan 2021 15:04:46 +0000 with message-id <[email protected]> and subject line Bug#972233: fixed in unzip 6.0-26 has caused the Debian Bug report #972233, regarding zipgrep: Avoid test errors when no members present to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 972233: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972233 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: unzip Version: 6.0-25 Severity: normal Tags: patch Dear Maintainer, If zipgrep is given one or more member names, none of which are present in the archive, it produces errors such as the following: caution: filename not matched: membername /usr/bin/zipgrep: 97: test: -eq: unexpected operator /usr/bin/zipgrep: 100: test: Illegal number: Which can be reproduced by running: zip motd.zip /etc/motd zipgrep pattern motd.zip membername This occurs because the sts variable is only set inside the loop over member names present in the archive. This can be avoided by initializing sts to 0 before the loop, as done by the attached patch. Thanks for considering, Kevin -- System Information: Debian Release: bullseye/sid APT prefers testing-debug APT policy: (990, 'testing-debug'), (990, 'testing'), (500, 'unstable-debug'), (500, 'unstable'), (101, 'experimental'), (1, 'experimental-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.9.0 (SMP w/4 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages unzip depends on: ii libbz2-1.0 1.0.8-4 ii libc6 2.31-3 unzip recommends no packages. Versions of packages unzip suggests: ii zip 3.0-11+b1 -- no debconf information>From 0fc0fef8153e70f5cf956922512d8e2acbc626ea Mon Sep 17 00:00:00 2001 Message-Id: <0fc0fef8153e70f5cf956922512d8e2acbc626ea.1602716158.git.ke...@kevinlocke.name> From: Kevin Locke <[email protected]> Date: Wed, 14 Oct 2020 16:46:23 -0600 Subject: [PATCH] zipgrep: Avoid test errors when no members present If zipgrep is given one or more member names, none of which are present in the archive, it produces errors such as the following: caution: filename not matched: membername /usr/bin/zipgrep: 97: test: -eq: unexpected operator /usr/bin/zipgrep: 100: test: Illegal number: Which can be reproduced by running: zip motd.zip /etc/motd zipgrep pattern motd.zip membername This occurs because the sts variable is only set inside the loop over member names present in the archive. Avoid it by initializing sts to 0. Signed-off-by: Kevin Locke <[email protected]> --- unix/zipgrep | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/zipgrep b/unix/zipgrep index 69cd6ba..b9d2316 100755 --- a/unix/zipgrep +++ b/unix/zipgrep @@ -44,6 +44,7 @@ if test -n "$opt"; then opt="-$opt" fi +sts=0 status_grep_global=1 IFS=' ' -- 2.28.0
--- End Message ---
--- Begin Message ---Source: unzip Source-Version: 6.0-26 Done: Santiago Vila <[email protected]> We believe that the bug you reported is fixed in the latest version of unzip, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Santiago Vila <[email protected]> (supplier of updated unzip package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Sun, 10 Jan 2021 15:34:00 +0100 Source: unzip Architecture: source Version: 6.0-26 Distribution: unstable Urgency: medium Maintainer: Santiago Vila <[email protected]> Changed-By: Santiago Vila <[email protected]> Closes: 963996 972233 Changes: unzip (6.0-26) unstable; urgency=medium . * Two more patches from Mark Adler for CVE-2019-13232. Closes: #963996. - Fix bug in UZbunzip2() that incorrectly updated G.incnt. - Fix bug in UZinflate() that incorrectly updated G.incnt. * Avoid weird zipgrep errors when no members are present. Thanks to Kevin Locke. Closes: #972233. * Update dependency on debhelper. Checksums-Sha1: 4969477ec72d3a7eca1894fd358f098e8377e8ed 1351 unzip_6.0-26.dsc b753717fb3e478028de2115426836890b2396be6 23708 unzip_6.0-26.debian.tar.xz 46e8c9418fe4822832c1cc3b3e211e42127c34b5 4946 unzip_6.0-26_source.buildinfo Checksums-Sha256: 403c8373da48b2976144569c1f44d065e6bb4ba874d9637c5497dcc34de618b5 1351 unzip_6.0-26.dsc 88cb7c0f1fd13252b662dfd224b64b352f9e75cd86389557fcb23fa6d2638599 23708 unzip_6.0-26.debian.tar.xz e6b12e34b585000e21504a4318801e6f428297324e939bb98f2081be9f160dc3 4946 unzip_6.0-26_source.buildinfo Files: 4108fc1276215b5e54e9ba26673157b4 1351 utils optional unzip_6.0-26.dsc e2bf7537e1ca821f6059ee84e7ae76a5 23708 utils optional unzip_6.0-26.debian.tar.xz 917a54af6378eda122b97be8a65fe0b5 4946 utils optional unzip_6.0-26_source.buildinfo -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAl/7Ei4ACgkQQc5/C58b izL0RwgAod8HMiB1N3uWXvl3fmD81VJkvPjLnc3LFUoWLRzPqBfx3r+yvHKRQaN+ lPIitKTAXF39GMdj5JIpx7+9NE6U1XcROvNy7w1JN12PdEuyCP6RlHWEcRyhrO1q 0XkUc5qP4NpGqkcX1qYxlSDbpaqsI6cMj58DXL1eCw56hZYU0ofUv5Wbb+678UKQ J/6C835LlEO8ANDfjdaHm2poUGzDhxKCszgdRyNyKfniRQ4OdUGQRM45CEpPhh/V 7q2+9ARYPwMhVxFikH+asgOQVd4KJuepOluNfWp6NQ9LQWDPLwGEEhINAbuxTBwM MBRtI6BnYZhOotT0RaCI/UAwJJyTHg== =sQYe -----END PGP SIGNATURE-----
--- End Message ---

