summaryrefslogtreecommitdiff
path: root/zforce.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 /zforce.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 'zforce.in')
-rw-r--r--zforce.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/zforce.in b/zforce.in
index b1a995e..c7f9ba2 100644
--- a/zforce.in
+++ b/zforce.in
@@ -23,7 +23,11 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-PATH="BINDIR:$PATH"; export PATH
+bindir=@bindir@
+case $1 in
+--__bindir) bindir=${2?}; shift; shift;;
+esac
+PATH=$bindir:$PATH; export PATH
version="zforce (gzip) @VERSION@
Copyright (C) 2007 Free Software Foundation, Inc.