diff options
author | Johan Erlandsson <johan.erlandsson@sonyericsson.com> | 2013-12-19 13:55:51 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-12-19 16:24:54 -0500 |
commit | e9a8c0c2d46a46c01c6a6daa5db14df72a7ad6aa (patch) | |
tree | 2d0ffc82ab151450961b9fbd5fa9d5c46c9dfab5 /e2fsck/pass3.c | |
parent | f404167dda29a59d2be2882328aeb074b9899669 (diff) | |
download | e2fsprogs-e9a8c0c2d46a46c01c6a6daa5db14df72a7ad6aa.tar.gz |
e2fsck: read only parameter incorrectly compared
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]
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/pass3.c')
-rw-r--r-- | e2fsck/pass3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsck/pass3.c b/e2fsck/pass3.c index d87bd79f..32c05b5b 100644 --- a/e2fsck/pass3.c +++ b/e2fsck/pass3.c @@ -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); /* |