gzip: fix bug in unpack EOB check
[debian/gzip] / zgrep.in
index 99ace593ce1560b6ceff15d7a09090ed07082d0d..2ed007bf014119572e7f5d4bddf1b21db3eb33df 100644 (file)
--- a/zgrep.in
+++ b/zgrep.in
@@ -3,7 +3,7 @@
 # zgrep -- a wrapper around a grep program that decompresses files as needed
 # Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
 
-# Copyright (C) 1998, 2001-2002, 2006-2007, 2009-2016 Free Software Foundation,
+# Copyright (C) 1998, 2001-2002, 2006-2007, 2009-2017 Free Software Foundation,
 # Inc.
 
 # Copyright (C) 1993 Jean-loup Gailly
@@ -25,9 +25,9 @@
 grep='${GREP-'\''@GREP@'\''}'
 
 version='zgrep (gzip) @VERSION@
-Copyright (C) 2010-2016 Free Software Foundation, Inc.
+Copyright (C) 2010-2017 Free Software Foundation, Inc.
 This is free software.  You may redistribute copies of it under the terms of
-the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
+the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.
 There is NO WARRANTY, to the extent permitted by law.
 
 Written by Jean-loup Gailly.'
@@ -134,7 +134,7 @@ while test $# -ne 0; do
         (exit 2); exit 2
       ' HUP INT PIPE TERM 0
       if type mktemp >/dev/null 2>&1; then
-        pattmp=$(mktemp -t -- "zgrep.XXXXXX") || exit 2
+        pattmp=$(mktemp) || exit 2
       else
         set -C
         pattmp=${TMPDIR-/tmp}/zgrep.$$