OSDN Git Service

Fix bug in e2fsck which caused it to core dump if --enable-jbd-debug is used
authorTheodore Ts'o <tytso@mit.edu>
Thu, 31 Jan 2008 19:22:24 +0000 (14:22 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 31 Jan 2008 19:22:24 +0000 (14:22 -0500)
Missing curly braces from a python programmer; my bad for noticing it!

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c

index 183116d..4ca13dc 100644 (file)
@@ -849,7 +849,7 @@ static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx)
        }
 #ifdef CONFIG_JBD_DEBUG
        jbd_debug = getenv("E2FSCK_JBD_DEBUG");
-       if (jbd_debug)
+       if (jbd_debug) {
                res = sscanf(jbd_debug, "%d", &journal_enable_debug);
                if (res != 1) {
                        fprintf(stderr,
@@ -857,6 +857,7 @@ static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx)
                                jbd_debug);
                        exit (1);
                }
+       }
 #endif
        return 0;