From: Theodore Ts'o Date: Thu, 31 Jan 2008 19:22:24 +0000 (-0500) Subject: Fix bug in e2fsck which caused it to core dump if --enable-jbd-debug is used X-Git-Tag: v1.40.6~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=414025e542d66a34e164286e783143cb256dd75e;p=thirdparty%2Fe2fsprogs.git Fix bug in e2fsck which caused it to core dump if --enable-jbd-debug is used Missing curly braces from a python programmer; my bad for noticing it! Signed-off-by: "Theodore Ts'o" --- diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 183116df2..4ca13dcaa 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -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;