Karel Klíč 21f85d5
diff -up gzip-1.3.13/gzip.1.noemptysuffix gzip-1.3.13/gzip.1
Karel Klíč 21f85d5
--- gzip-1.3.13/gzip.1.noemptysuffix	2009-09-26 20:43:28.000000000 +0200
Karel Klíč 21f85d5
+++ gzip-1.3.13/gzip.1	2010-02-22 14:29:54.828770607 +0100
Karel Klíč 21f85d5
@@ -291,15 +291,14 @@ will descend into the directory and comp
Karel Klíč 21f85d5
 ).
Karel Klíč 21f85d5
 .TP
Karel Klíč 21f85d5
 .B \-S .suf   --suffix .suf
Karel Klíč 21f85d5
-Use suffix .suf instead of .gz. Any suffix can be given, but suffixes
Karel Klíč 21f85d5
+When compressing, use suffix .suf instead of .gz.
Karel Klíč 21f85d5
+Any non-empty suffix can be given, but suffixes
Karel Klíč 21f85d5
 other than .z and .gz should be avoided to avoid confusion when files
Karel Klíč 21f85d5
-are transferred to other systems.  A null suffix forces gunzip to  try
Karel Klíč 21f85d5
-decompression on all given files regardless of suffix, as in:
Karel Klíč 21f85d5
+are transferred to other systems.
Karel Klíč 21f85d5
 
Karel Klíč 21f85d5
-    gunzip -S "" *       (*.* for MSDOS)
Karel Klíč 21f85d5
+When decompressing, add .suf to the beginning of the list of
Karel Klíč 21f85d5
+suffixes to try, when deriving an output file name from an input file name.
Karel Klíč 21f85d5
 
Karel Klíč 21f85d5
-Previous versions of gzip used
Karel Klíč 21f85d5
-the .z suffix. This was changed to avoid a conflict with
Karel Klíč 21f85d5
 .IR pack "(1)".
Karel Klíč 21f85d5
 .TP
Karel Klíč 21f85d5
 .B \-t --test
Karel Klíč 21f85d5
diff -up gzip-1.3.13/gzip.c.noemptysuffix gzip-1.3.13/gzip.c
Karel Klíč 21f85d5
--- gzip-1.3.13/gzip.c.noemptysuffix	2010-02-22 14:29:54.000000000 +0100
Karel Klíč 21f85d5
+++ gzip-1.3.13/gzip.c	2010-02-22 14:34:33.480895239 +0100
Karel Klíč 21f85d5
@@ -547,11 +547,11 @@ int main (argc, argv)
Karel Klíč 21f85d5
 		program_name);
Karel Klíč 21f85d5
     }
Karel Klíč 21f85d5
 #endif
Karel Klíč 21f85d5
-    if ((z_len == 0 && !decompress) || z_len > MAX_SUFFIX) {
Karel Klíč 21f85d5
-        fprintf(stderr, "%s: incorrect suffix '%s'\n",
Karel Klíč 21f85d5
-                program_name, z_suffix);
Karel Klíč 21f85d5
+    if (z_len == 0 || z_len > MAX_SUFFIX) {
Karel Klíč 21f85d5
+        fprintf(stderr, "%s: invalid suffix '%s'\n", program_name, z_suffix);
Karel Klíč 21f85d5
         do_exit(ERROR);
Karel Klíč 21f85d5
     }
Karel Klíč 21f85d5
+
Karel Klíč 21f85d5
     if (do_lzw && !decompress) work = lzw;
Karel Klíč 21f85d5
 
Karel Klíč 21f85d5
     /* Allocate all global buffers (for DYN_ALLOC option) */