gzip: fix --suffix=z bug (Bug#18239)
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Aug 2014 23:29:06 +0000 (16:29 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Aug 2014 23:29:34 +0000 (16:29 -0700)
commit5d5f73163e6fd4c4679c22cfe16d6ab87aef92a4
tree223b52e94ee7f277672cd4f87928bee1176ba73f
parentd2a1928e5534017456dc8a3b600ba0b30cce4a6e
gzip: fix --suffix=z bug (Bug#18239)

* gzip.c (get_suffix): Put --suffix string at the end
of the list of suffixes if it is a suffix of one one them.
* tests/z-suffix: New file.
* tests/Makefile.am (TESTS): Add it.
gzip.c
tests/Makefile.am
tests/z-suffix [new file with mode: 0755]