summaryrefslogtreecommitdiff
path: root/source/ap/man/makewhatis.bzcat.bugfix.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/man/makewhatis.bzcat.bugfix.diff')
-rw-r--r--source/ap/man/makewhatis.bzcat.bugfix.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/ap/man/makewhatis.bzcat.bugfix.diff b/source/ap/man/makewhatis.bzcat.bugfix.diff
new file mode 100644
index 00000000..27ca6cbc
--- /dev/null
+++ b/source/ap/man/makewhatis.bzcat.bugfix.diff
@@ -0,0 +1,18 @@
+From e488c56037adbcff4be255bb95feaedb147898e9 Mon Sep 17 00:00:00 2001
+From: mancha <mancha1 AT zoho1 DOT com>
+Date: Sat, 18 Oct 2014
+Subject: awk like a boss
+
+"To fall-through, or not to fall-through, that is the transgression."
+
+--- a/src/makewhatis.sh
++++ b/src/makewhatis.sh
+@@ -264,7 +264,7 @@ do
+ match(filename,"\\.z$") || match(filename,"\\.gz$");
+ if (!use_zcat)
+ use_bzcat = match(filename,"\\.bz2");
+- if(!use_bzcat)
++ if (!use_bzcat && !use_zcat)
+ use_lzcat = match(filename,"\\.lzma");
+ if (use_zcat || use_bzcat || use_lzcat ) {
+ filename_no_gz = substr(filename, 0, RSTART - 1);