From 85b65f758524dae5cf6856f4ff4f907b0a5871fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 20 Jul 2007 10:45:04 +0000 Subject: [PATCH] The AttributeIterator was returning the size of the attribute data rather than the length of the attribute name in GetNext() for attributes that are actual inodes. Found by Robert Szeleney, thanks! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21674 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Inode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Inode.cpp b/src/add-ons/kernel/file_systems/bfs/Inode.cpp index 12c7ceebf4..802a8d575d 100644 --- a/src/add-ons/kernel/file_systems/bfs/Inode.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Inode.cpp @@ -2536,7 +2536,7 @@ AttributeIterator::GetNext(char *name, size_t *_length, uint32 *_type, Inode *attribute; if ((status = vnode.Get(&attribute)) == B_OK) { *_type = attribute->Type(); - *_length = attribute->Size(); + *_length = length; *_id = id; }