From 032f1e5f90adbf6b08f83d746a19d440b01180a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 1 Jun 2008 18:47:18 +0000 Subject: [PATCH] * Fixed an endless loop when using vfs_get_vnode_name() or the "wrong" get_vnode_name() variant. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25750 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index 055760ffd2..638ea660c0 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -2256,7 +2256,7 @@ get_vnode_name(struct vnode *vnode, struct vnode *parent, char *name, char buffer[sizeof(struct dirent) + B_FILE_NAME_LENGTH]; struct dirent *dirent = (struct dirent *)buffer; - status_t status = get_vnode_name(vnode, parent, buffer, sizeof(buffer), + status_t status = get_vnode_name(vnode, parent, dirent, sizeof(buffer), get_current_io_context(kernel)); if (status != B_OK) return status;