aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2017-07-06 18:32:45 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2017-07-06 18:32:45 -0800
commit012d70833ae03359c9cbbea15f8ee4e13d6e16b1 (patch)
treee49f1d42a9939d5ae69b0aaa2f08617f8dcfc0f1
parent9562704919678679b0e9feeff201e15fa2af11df (diff)
downloadsecurecoreutils-012d70833ae03359c9cbbea15f8ee4e13d6e16b1.tar.gz
securecoreutils-012d70833ae03359c9cbbea15f8ee4e13d6e16b1.tar.bz2
securecoreutils-012d70833ae03359c9cbbea15f8ee4e13d6e16b1.tar.xz
securecoreutils-012d70833ae03359c9cbbea15f8ee4e13d6e16b1.zip
disabling zcat aliases for disabled compressions
-rw-r--r--src/securecoreutils.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/securecoreutils.c b/src/securecoreutils.c
index 0e45a7e..b4808b7 100644
--- a/src/securecoreutils.c
+++ b/src/securecoreutils.c
@@ -118,9 +118,17 @@ const scu_widget scu_widget_map[] =
118 { 118 {
119 "zcat", // widget name 119 "zcat", // widget name
120 "Uncompresses file and write to standard out.", // widget description 120 "Uncompresses file and write to standard out.", // widget description
121 (const char * const[]) { "bzcat", "gzcat", 121 (const char * const[]) { "seczcat",
122 "xzcat", "seczcat", "secbzcat", "secgzcat", 122#ifdef USE_BZIP2
123 "secxzcat", NULL }, // widget alias 123 "bzcat", "secbzcat",
124#endif
125#ifdef USE_ZLIB
126 "gzcat", "secgzcat",
127#endif
128#ifdef USE_LZMA
129 "xzcat", "secxzcat",
130#endif
131 NULL }, // widget alias
124 scu_widget_zcat, // widget function 132 scu_widget_zcat, // widget function
125 }, 133 },
126 { NULL, NULL, NULL, NULL } 134 { NULL, NULL, NULL, NULL }