get_vnode_name() for file system's that do not export the fs_get_vnode_name()

function was slightly broken :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10407 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-12-12 23:12:08 +00:00
parent 4692c99460
commit 66340e6747

View File

@ -1230,11 +1230,12 @@ get_vnode_name(struct vnode *vnode, struct vnode *parent,
if (status < B_OK)
break;
if (vnode->id == dirent->d_ino)
if (vnode->id == dirent->d_ino) {
// found correct entry!
if (strlcpy(name, dirent->d_name, nameSize) >= nameSize)
status = B_BUFFER_OVERFLOW;
break;
}
}
FS_CALL(vnode, close_dir)(vnode->mount->cookie, vnode->private_node, cookie);
}