OSDN Git Service

problem.c (fix_problem): Don't call print_e2fsck_message if the
authorTheodore Ts'o <tytso@mit.edu>
Sun, 1 Feb 2004 02:24:51 +0000 (21:24 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 1 Feb 2004 02:24:51 +0000 (21:24 -0500)
message is empty; otherwise, the NLS substitution will
print the .po header, which is Just Wrong.

e2fsck/ChangeLog
e2fsck/problem.c

index 6adb24c..daf9e8b 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-31  Theodore Ts'o  <tytso@mit.edu>
+
+       * problem.c (fix_problem): Don't call print_e2fsck_message if the
+               message is empty; otherwise, the NLS substitution will
+               print the .po header, which is Just Wrong.
+
 2004-01-30  Theodore Ts'o  <tytso@mit.edu>
 
        * pass2.c (deallocate_inode_block): Check to make sure the block
index 9f0b561..f267372 100644 (file)
@@ -1558,7 +1558,8 @@ int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx)
                        printf("%s: ", ctx->device_name ?
                               ctx->device_name : ctx->filesystem_name);
                }
-               print_e2fsck_message(ctx, _(message), pctx, 1);
+               if (*message)
+                       print_e2fsck_message(ctx, _(message), pctx, 1);
        }
        if (!(ptr->flags & PR_PREEN_OK) && (ptr->prompt != PROMPT_NONE))
                preenhalt(ctx);