mirror of https://github.com/hak5/openwrt.git
tools/squashfs4: fix bugs of xz compress options
lzma_xz_dump_options never return NULL, should compare real options with default options Signed-off-by: Liangbin Lian <jjm2473@gmail.com>openwrt-18.06
parent
e6bcfdfdba
commit
910ac641cc
|
@ -370,9 +370,9 @@
|
||||||
+ if (options.preset == 6 &&
|
+ if (options.preset == 6 &&
|
||||||
+ options.extreme == 0 &&
|
+ options.extreme == 0 &&
|
||||||
+ options.lc == LZMA_OPT_LC_DEFAULT &&
|
+ options.lc == LZMA_OPT_LC_DEFAULT &&
|
||||||
+ options.lp == LZMA_OPT_LC_DEFAULT &&
|
+ options.lp == LZMA_OPT_LP_DEFAULT &&
|
||||||
+ options.pb == LZMA_OPT_PB_DEFAULT &&
|
+ options.pb == LZMA_OPT_PB_DEFAULT &&
|
||||||
+ options.fb == 0 &&
|
+ options.fb == LZMA_OPT_FB_DEFAULT &&
|
||||||
+ options.dict_size == block_size &&
|
+ options.dict_size == block_size &&
|
||||||
+ flags == 0)
|
+ flags == 0)
|
||||||
+ return NULL;
|
+ return NULL;
|
||||||
|
@ -405,7 +405,7 @@
|
||||||
+ options.preset = 6;
|
+ options.preset = 6;
|
||||||
+ options.extreme = 0;
|
+ options.extreme = 0;
|
||||||
+ options.lc = LZMA_OPT_LC_DEFAULT;
|
+ options.lc = LZMA_OPT_LC_DEFAULT;
|
||||||
+ options.lp = LZMA_OPT_LC_DEFAULT;
|
+ options.lp = LZMA_OPT_LP_DEFAULT;
|
||||||
+ options.pb = LZMA_OPT_PB_DEFAULT;
|
+ options.pb = LZMA_OPT_PB_DEFAULT;
|
||||||
+ options.fb = LZMA_OPT_FB_DEFAULT;
|
+ options.fb = LZMA_OPT_FB_DEFAULT;
|
||||||
+ options.dict_size = block_size;
|
+ options.dict_size = block_size;
|
||||||
|
|
Loading…
Reference in New Issue