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.
This commit is contained in:
Theodore Ts'o 2004-01-31 21:24:51 -05:00
parent 3c203cb683
commit 489f00248f
2 changed files with 8 additions and 1 deletions

View 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

View 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);