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:
parent
4692c99460
commit
66340e6747
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user