]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - debugfs/xattrs.c
libext2fs: fix the {set_get}_bitmap_range functions when bitmap->start > 7
[thirdparty/e2fsprogs.git] / debugfs / xattrs.c
index 8bbaaeddbf598350d3aadd07cdbfae008f71a68d..bd114503a4c326815b380c580dbb3958c40acff5 100644 (file)
@@ -452,7 +452,7 @@ static void dump_xattr_raw_entries(FILE *f, unsigned char *buf,
                else if (ent.e_value_offs >= len ||
                         (vstart + ent.e_value_size) > len)
                        fprintf(f, "<runs off end>");
-               if (is_mostly_printable((char *)(buf + vstart),
+               else if (is_mostly_printable((char *)(buf + vstart),
                                        ent.e_value_size))
                        safe_print(f, (char *)(buf + vstart),
                                   ent.e_value_size);