diff options
Diffstat (limited to 'ext2fs/xattr.c')
-rw-r--r-- | ext2fs/xattr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext2fs/xattr.c b/ext2fs/xattr.c index 52d3a9c0..5ce84ce5 100644 --- a/ext2fs/xattr.c +++ b/ext2fs/xattr.c @@ -597,8 +597,6 @@ ext2_get_xattr (struct node *np, const char *name, char *value, size_t *len) if (strlen(name) > 255) return ERANGE; - size = *len; - ei = dino_ref (np->cache_id); if (ei->i_file_acl == 0) @@ -623,6 +621,7 @@ ext2_get_xattr (struct node *np, const char *name, char *value, size_t *len) while (!EXT2_XATTR_ENTRY_LAST (entry)) { + size = *len; err = xattr_entry_get (block, entry, name, value, &size, NULL); if (err!= ENODATA) break; |