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

Igor Ostapenko igoreisberg at gmail.com
Fri Jan 28 15:50:18 AEDT 2022


From: Igor Eisberg <igoreisberg at gmail.com>

Fix compile

Signed-off-by: Igor Ostapenko <igoreisberg at gmail.com>
---
 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