erofs-utils: fix up "-E legacy-compress" option
PATCH 1/1 erofs-utils: fix up "-E legacy-compress" option
"-E legacy-compress" isn't parsed properly, fix it now.
Signed-off-by Gao Xiang <[email protected]>
--- mkfs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mkfs/main.c +1 -1
@@ -34,7 +34,7 @@ static void usage(void)static int parse_extended_opts (const char *opts) {#define MATCH_EXTENTED_OPT (opt, token, keylen) \ - (keylen == sizeof(opt) && !memcmp(token, opt, sizeof(opt))) + (keylen == sizeof(opt) - 1 && !memcmp(token, opt, sizeof(opt) - 1))const char *token, *next, *tokenend, *value__maybe_unused ;unsigned int keylen, vallen;
Signature · 1 line
2.17.1
Quoted 7 lines · Gao Xiang via Linux-erofs
"-E legacy-compress" isn't parsed properly, fix it now.
Signed-off-by Gao Xiang <[email protected]>--- mkfs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Li Guifu <[email protected]>
Thanks,