gzip: add support for --no-name long option
authorAaro Koskinen <aaro.koskinen@iki.fi>
Mon, 26 Oct 2015 21:42:33 +0000 (23:42 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 27 Oct 2015 20:30:43 +0000 (21:30 +0100)
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>
archival/bbunzip.c
archival/gzip.c

index e10372e14dc0050679fb1a49da35a16e2555fab7..b4f754e0b2ad30ec4f525ef5ba52c98486654673 100644 (file)
@@ -335,6 +335,7 @@ static const char gunzip_longopts[] ALIGN1 =
        "to-stdout\0"           No_argument       "c"
        "force\0"               No_argument       "f"
        "test\0"                No_argument       "t"
+       "no-name\0"             No_argument       "n"
        ;
 #endif
 
index c9171304a91bfcf013b6f4da13a26c9293833df8..f9bb3c742ac99eb201887bc4c90170fcd550fa39 100644 (file)
@@ -2160,6 +2160,7 @@ static const char gzip_longopts[] ALIGN1 =
        "quiet\0"               No_argument       "q"
        "fast\0"                No_argument       "1"
        "best\0"                No_argument       "9"
+       "no-name\0"             No_argument       "n"
        ;
 #endif