From fa773c0ae535212b774a7f98d50cb6ece7b5d6c2 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 1 Jun 2009 11:12:12 +0000 Subject: [PATCH] vnode_path_to_vnode(): Don't propagate the traverseLeafLink flag, if we've decided to recursively resolve a symlink. We only have to do the resolution when the flag is true anyway or the symlink is not the last component of our path, in which case we have to resolve it anyway. Fixes #3986. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30937 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index 3458462820..0e989945fc 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -2318,8 +2318,8 @@ vnode_path_to_vnode(struct vnode* vnode, char* path, bool traverseLeafLink, // symlink was just "/" nextVnode = vnode; } else { - status = vnode_path_to_vnode(vnode, path, traverseLeafLink, - count + 1, ioContext, &nextVnode, &lastParentID); + status = vnode_path_to_vnode(vnode, path, true, count + 1, + ioContext, &nextVnode, &lastParentID); } free(buffer);