summaryrefslogtreecommitdiff
path: root/gzexe.in
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2007-05-04 19:53:25 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2007-05-04 19:53:25 +0000
commit4858351c63f69ea0563bda954c55b875c0c7e7be (patch)
treeb89ac3b1e8e85f41111ca7ea6dc6d95eb7285334 /gzexe.in
parent79c3261c8b9d2ce4cddb488bdee4b087c2e22ee8 (diff)
downloadgzip-4858351c63f69ea0563bda954c55b875c0c7e7be.tar.gz
* Makefile.am (.in): Substitute @bindir@, not BINDIR, for
consistency with other substitutions. (check-local): Use --__bindir . rather than setting GZIP_BINDIR=., to allay security concerns voiced by Joerg Lehners in <http://lists.gnu.org/archive/html/bug-gzip/2007-04/msg00003.html>. * gunzip.in, gzexe.in, zcat.in, zcmp.in, zdiff.in, zegrep.in, zfgrep.in: * zforce.in, zgrep.in, zless.in, zmore.in, znew.in: Support --__bindir rather than GZIP_BINDIR. * gunzip.in, zcat.in, zcmp.in: Support --help and --version directly, to avoid some confusion in help and version output. Problem reported by Eric Blake in <http://lists.gnu.org/archive/html/bug-gzip/2007-04/msg00006.html>.
Diffstat (limited to 'gzexe.in')
-rw-r--r--gzexe.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/gzexe.in b/gzexe.in
index 0acd3bb..281538d 100644
--- a/gzexe.in
+++ b/gzexe.in
@@ -53,7 +53,11 @@ Rename each FILE with a compressed version of itself, renaming FILE to FILE~.
Report bugs to <bug-gzip@gnu.org>."
-PATH="BINDIR:$PATH"
+bindir=@bindir@
+case $1 in
+--__bindir) bindir=${2?}; shift; shift;;
+esac
+PATH=$bindir:$PATH
decomp=0
res=0