summaryrefslogtreecommitdiff
path: root/lib/ext2fs/namei.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 /lib/ext2fs/namei.c
parentbbbc92f2eda2d2bcdb71f55eb4a36bb86bcffb7b (diff)
downloade2fsprogs-795afc4483c341d61805247a69b3b696e5599c09.tar.gz
Fix libext2fs and debugfs to correctly deal with symlinks that have
extended attribute information. (Addresses Debian Bug #232328)
Diffstat (limited to 'lib/ext2fs/namei.c')
-rw-r--r--lib/ext2fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/namei.c b/lib/ext2fs/namei.c
index be719a26..13d13adf 100644
--- a/lib/ext2fs/namei.c
+++ b/lib/ext2fs/namei.c
@@ -47,7 +47,7 @@ static errcode_t follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t dir,
if (link_count++ > 5) {
return EXT2_ET_SYMLINK_LOOP;
}
- if (ei.i_blocks) {
+ if (ext2fs_inode_data_blocks(fs,&ei)) {
retval = ext2fs_get_mem(fs->blocksize, &buffer);
if (retval)
return retval;