pass1.c (check_ext_attr): Skip zero-length EA entries.
problem.c: PR_1_EA_ALLOC_COLLISION shouldn't abort, but should prompt
to clear the EA block.
+2001-07-25 Theodore Tso <tytso@valinux.com>
+
+ * pass1.c (check_ext_attr): Skip zero-length EA entries.
+
+ * problem.c: PR_1_EA_ALLOC_COLLISION shouldn't abort, but should
+ prompt to clear the EA block.
+
2001-07-22 Theodore Tso <tytso@valinux.com>
* journal.c (ll_rw_block): Use ctx->journal_io instead of the
if (fix_problem(ctx, PR_1_EA_BAD_VALUE, pctx))
goto clear_extattr;
}
- if (region_allocate(region, entry->e_value_offs,
- EXT2_EXT_ATTR_SIZE(entry->e_value_size))) {
+ if (entry->e_value_size &&
+ region_allocate(region, entry->e_value_offs,
+ EXT2_EXT_ATTR_SIZE(entry->e_value_size))) {
if (fix_problem(ctx, PR_1_EA_ALLOC_COLLISION, pctx))
goto clear_extattr;
}
/* Error EA allocation collision */
{ PR_1_EA_ALLOC_COLLISION,
N_("@a @b %b is corrupt (allocation collision). "),
- PROMPT_ABORT, 0},
+ PROMPT_CLEAR, 0},
/* Bad extended attribute name */
{ PR_1_EA_BAD_NAME,