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:
@@ -1230,11 +1230,12 @@ get_vnode_name(struct vnode *vnode, struct vnode *parent,
|
|||||||
if (status < B_OK)
|
if (status < B_OK)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (vnode->id == dirent->d_ino)
|
if (vnode->id == dirent->d_ino) {
|
||||||
// found correct entry!
|
// found correct entry!
|
||||||
if (strlcpy(name, dirent->d_name, nameSize) >= nameSize)
|
if (strlcpy(name, dirent->d_name, nameSize) >= nameSize)
|
||||||
status = B_BUFFER_OVERFLOW;
|
status = B_BUFFER_OVERFLOW;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
FS_CALL(vnode, close_dir)(vnode->mount->cookie, vnode->private_node, cookie);
|
FS_CALL(vnode, close_dir)(vnode->mount->cookie, vnode->private_node, cookie);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user