Skip to contentSkip to conversation

e2fsck: read only parameter incorrectly compared

PATCH New Theodore Ts'o 1 participant 1 message Dec 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e2fsck: read only parameter incorrectly compared

From: Johan Erlandsson <[email protected]>

Don't check for lost+found in read only mode.

[Note: this patch was originally made against 1.41.14 version of e2fsprogs found as part of the AOSP (Android Open Source Program) tree. My Signed-off-by relies on the fact that the original patch author would have had to have filed a contribution agreement with Open Handset Alliance before this commit before this commit was allowed into the AOSP tree. -- tytso]

---

Note: This patch was original authored on August 2, 2012. It would have been nice if had been sent directly to upstream earlier, but oh, well. (This patch was sent to me via Google's Android team.)

I will apply it against the maint branch and it will be in the 1.42.9 release.

 e2fsck/pass3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
e2fsck/pass3.c +1 -1
index d87bd79..32c05b5 100644
@@ -112,7 +112,7 @@ void e2fsck_pass3(e2fsck_t ctx)
 	/*
 	 * Force the creation of /lost+found if not present
 	 */
-	if ((ctx->flags & E2F_OPT_READONLY) == 0)
+	if ((ctx->options & E2F_OPT_READONLY) == 0)
 		e2fsck_get_lost_and_found(ctx, 1);
 
 	/*
Signature · 1 line
1.8.5.rc3.362.gdf10213