Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/usr.bin/gzip Recognise .bz2 as a valid suffix.



details:   https://anonhg.NetBSD.org/src/rev/7a001fc82072
branches:  trunk
changeset: 499315:7a001fc82072
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Nov 17 01:31:26 2000 +0000

description:
Recognise .bz2 as a valid suffix.

diffstat:

 gnu/usr.bin/gzip/gzip.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r e11ae78c00b5 -r 7a001fc82072 gnu/usr.bin/gzip/gzip.c
--- a/gnu/usr.bin/gzip/gzip.c   Thu Nov 16 23:32:00 2000 +0000
+++ b/gnu/usr.bin/gzip/gzip.c   Fri Nov 17 01:31:26 2000 +0000
@@ -45,7 +45,7 @@
  */
 
 #ifdef RCSID
-static char rcsid[] = "$Id: gzip.c,v 1.6 1999/08/20 02:36:28 simonb Exp $";
+static char rcsid[] = "$Id: gzip.c,v 1.7 2000/11/17 01:31:26 simonb Exp $";
 #endif
 
 #include <ctype.h>
@@ -951,7 +951,7 @@
     int nlen, slen;
     char suffix[MAX_SUFFIX+3]; /* last chars of name, forced to lower case */
     static char *known_suffixes[] =
-       {z_suffix, ".gz", ".z", ".taz", ".tgz", "-gz", "-z", "_z",
+       {z_suffix, ".gz", ".z", ".taz", ".tgz", "-gz", "-z", "_z", ".bz2",
 #ifdef MAX_EXT_CHARS
           "z",
 #endif



Home | Main Index | Thread Index | Old Index