aboutsummaryrefslogtreecommitdiffstats
path: root/debugfs/debugfs.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2004-02-21 20:54:31 -0500
committerTheodore Ts'o <tytso@mit.edu>2004-02-21 20:54:31 -0500
commit795afc4483c341d61805247a69b3b696e5599c09 (patch)
treefd95fb73621f88ff3874378d23a084d44b67598e /debugfs/debugfs.c
parentbbbc92f2eda2d2bcdb71f55eb4a36bb86bcffb7b (diff)
downloadandroid_external_e2fsprogs-795afc4483c341d61805247a69b3b696e5599c09.tar.gz
android_external_e2fsprogs-795afc4483c341d61805247a69b3b696e5599c09.tar.bz2
android_external_e2fsprogs-795afc4483c341d61805247a69b3b696e5599c09.zip
Fix libext2fs and debugfs to correctly deal with symlinks that have
extended attribute information. (Addresses Debian Bug #232328)
Diffstat (limited to 'debugfs/debugfs.c')
-rw-r--r--debugfs/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index f33e08ea..6e3d7dc5 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -456,7 +456,7 @@ void internal_dump_inode(FILE *out, const char *prefix,
if (inode->i_dtime)
fprintf(out, "%sdtime: 0x%08x -- %s", prefix, inode->i_dtime,
time_to_string(inode->i_dtime));
- if (LINUX_S_ISLNK(inode->i_mode) && inode->i_blocks == 0)
+ if (LINUX_S_ISLNK(inode->i_mode) && ext2fs_inode_data_blocks(current_fs,inode) == 0)
fprintf(out, "%sFast_link_dest: %.*s\n", prefix,
(int) inode->i_size, (char *)inode->i_block);
else if (do_dump_blocks)