diff options
author | Ron Yorston <rmy@pobox.com> | 2016-10-19 17:01:55 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-10-19 17:01:55 +0100 |
commit | 075814c60a316cfd088c88f26f75ab21b5850b98 (patch) | |
tree | f6e33ac693630827deb309faa5fa4931588db57d /archival | |
parent | 977d65c1bbc57f5cdd0c8bfd67c8b5bb1cd390dd (diff) | |
parent | f37e1155aabde6bd95d267a8aec347cedccb8bc3 (diff) | |
download | busybox-w32-075814c60a316cfd088c88f26f75ab21b5850b98.tar.gz busybox-w32-075814c60a316cfd088c88f26f75ab21b5850b98.tar.bz2 busybox-w32-075814c60a316cfd088c88f26f75ab21b5850b98.zip |
Merge branch busybox (up to "ash: comment out free(p) just before...")
Diffstat (limited to 'archival')
-rw-r--r-- | archival/cpio.c | 8 | ||||
-rw-r--r-- | archival/gzip.c | 5 |
2 files changed, 5 insertions, 8 deletions
diff --git a/archival/cpio.c b/archival/cpio.c index 3b1550720..540218cb2 100644 --- a/archival/cpio.c +++ b/archival/cpio.c | |||
@@ -23,7 +23,7 @@ | |||
23 | //config: cpio has 110 bytes of overheads for every stored file. | 23 | //config: cpio has 110 bytes of overheads for every stored file. |
24 | //config: | 24 | //config: |
25 | //config: This implementation of cpio can extract cpio archives created in the | 25 | //config: This implementation of cpio can extract cpio archives created in the |
26 | //config: "newc" or "crc" format, it cannot create or modify them. | 26 | //config: "newc" or "crc" format. |
27 | //config: | 27 | //config: |
28 | //config: Unless you have a specific application which requires cpio, you | 28 | //config: Unless you have a specific application which requires cpio, you |
29 | //config: should probably say N here. | 29 | //config: should probably say N here. |
@@ -51,10 +51,10 @@ | |||
51 | //usage: " [-ti"IF_FEATURE_CPIO_O("o")"]" IF_FEATURE_CPIO_P(" [-p DIR]") | 51 | //usage: " [-ti"IF_FEATURE_CPIO_O("o")"]" IF_FEATURE_CPIO_P(" [-p DIR]") |
52 | //usage: " [EXTR_FILE]..." | 52 | //usage: " [EXTR_FILE]..." |
53 | //usage:#define cpio_full_usage "\n\n" | 53 | //usage:#define cpio_full_usage "\n\n" |
54 | //usage: "Extract or list files from a cpio archive" | 54 | //usage: "Extract (-i) or list (-t) files from a cpio archive" |
55 | //usage: IF_FEATURE_CPIO_O(", or" | 55 | //usage: IF_FEATURE_CPIO_O(", or" |
56 | //usage: "\ncreate an archive" IF_FEATURE_CPIO_P(" (-o) or copy files (-p)") | 56 | //usage: "\ntake file list from stdin and create an archive (-o)" |
57 | //usage: " using file list on stdin" | 57 | //usage: IF_FEATURE_CPIO_P(" or copy files (-p)") |
58 | //usage: ) | 58 | //usage: ) |
59 | //usage: "\n" | 59 | //usage: "\n" |
60 | //usage: "\nMain operation mode:" | 60 | //usage: "\nMain operation mode:" |
diff --git a/archival/gzip.c b/archival/gzip.c index 8f1e4ff29..9e0bee815 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -2220,10 +2220,7 @@ int gzip_main(int argc UNUSED_PARAM, char **argv) | |||
2220 | opt >>= ENABLE_GUNZIP ? 7 : 5; /* drop cfv[dt]qn bits */ | 2220 | opt >>= ENABLE_GUNZIP ? 7 : 5; /* drop cfv[dt]qn bits */ |
2221 | if (opt == 0) | 2221 | if (opt == 0) |
2222 | opt = 1 << 6; /* default: 6 */ | 2222 | opt = 1 << 6; /* default: 6 */ |
2223 | /* Map 1..3 to 4 */ | 2223 | opt = ffs(opt >> 4); /* Maps -1..-4 to [0], -5 to [1] ... -9 to [5] */ |
2224 | if (opt & 0x7) | ||
2225 | opt |= 1 << 4; | ||
2226 | opt = ffs(opt >> 3); | ||
2227 | max_chain_length = 1 << gzip_level_config[opt].chain_shift; | 2224 | max_chain_length = 1 << gzip_level_config[opt].chain_shift; |
2228 | good_match = gzip_level_config[opt].good; | 2225 | good_match = gzip_level_config[opt].good; |
2229 | max_lazy_match = gzip_level_config[opt].lazy2 * 2; | 2226 | max_lazy_match = gzip_level_config[opt].lazy2 * 2; |