diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2015-10-26 23:42:33 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-27 21:30:43 +0100 |
commit | cddc98eab7d770427941db4abae2da4ae68f1e68 (patch) | |
tree | eb64cf6fe84feb5faae75d0c67086f9cc17a7c04 | |
parent | fbe50cf6bc685f7cf4fbcb9c0c425fc93575a085 (diff) | |
download | busybox-w32-cddc98eab7d770427941db4abae2da4ae68f1e68.tar.gz busybox-w32-cddc98eab7d770427941db4abae2da4ae68f1e68.tar.bz2 busybox-w32-cddc98eab7d770427941db4abae2da4ae68f1e68.zip |
gzip: add support for --no-name long option
Add support for --no-name long option. Just silently ignore it
like the short -n option.
This allows to use busybox gzip with Lynx browser.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/bbunzip.c | 1 | ||||
-rw-r--r-- | archival/gzip.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c index e10372e14..b4f754e0b 100644 --- a/archival/bbunzip.c +++ b/archival/bbunzip.c | |||
@@ -335,6 +335,7 @@ static const char gunzip_longopts[] ALIGN1 = | |||
335 | "to-stdout\0" No_argument "c" | 335 | "to-stdout\0" No_argument "c" |
336 | "force\0" No_argument "f" | 336 | "force\0" No_argument "f" |
337 | "test\0" No_argument "t" | 337 | "test\0" No_argument "t" |
338 | "no-name\0" No_argument "n" | ||
338 | ; | 339 | ; |
339 | #endif | 340 | #endif |
340 | 341 | ||
diff --git a/archival/gzip.c b/archival/gzip.c index c9171304a..f9bb3c742 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -2160,6 +2160,7 @@ static const char gzip_longopts[] ALIGN1 = | |||
2160 | "quiet\0" No_argument "q" | 2160 | "quiet\0" No_argument "q" |
2161 | "fast\0" No_argument "1" | 2161 | "fast\0" No_argument "1" |
2162 | "best\0" No_argument "9" | 2162 | "best\0" No_argument "9" |
2163 | "no-name\0" No_argument "n" | ||
2163 | ; | 2164 | ; |
2164 | #endif | 2165 | #endif |
2165 | 2166 | ||