[PATCH] erofs-utils: fsck: fix issues related to --extract=X

Gao Xiang hsiangkao at linux.alibaba.com
Fri Jan 28 16:12:34 AEDT 2022


On Fri, Jan 28, 2022 at 06:50:18AM +0200, Igor Ostapenko wrote:
> From: Igor Eisberg <igoreisberg at gmail.com>
> 
> Fix compile
> 
> Signed-off-by: Igor Ostapenko <igoreisberg at gmail.com>

Many thanks, I will fold these two patches into the first one
for applying.

Thanks,
Gao Xiang

> ---
>  fsck/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fsck/main.c b/fsck/main.c
> index 2f13870..6f17d0e 100644
> --- a/fsck/main.c
> +++ b/fsck/main.c
> @@ -196,7 +196,7 @@ static int erofsfsck_parse_options_cfg(int argc, char **argv)
>  			return -EINVAL;
>  		}
>  		if (fsckcfg.preserve_owner || fsckcfg.preserve_perms ||
> -			  fsckcfg.no_preserve_owner || fsckcfg.no_preserve_perms) {
> +			  no_preserve_owner || no_preserve_perms) {
>  			erofs_err("--[no-]preserve[-owner/-perms] must be used together with --extract=X");
>  			return -EINVAL;
>  		}
> -- 
> 2.30.2


More information about the Linux-erofs mailing list