when renaming, check first with the newDirectory instead of starting at its parent. this should fix #3355

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29001 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2009-01-24 00:31:16 +00:00
parent 569eafd85e
commit b6b002b81e

View File

@ -1034,7 +1034,7 @@ bfs_rename(fs_volume* _volume, fs_vnode* _oldDir, const char* oldName,
// If we meet our inode on that way, we have to bail out.
if (oldDirectory != newDirectory) {
ino_t parent = volume->ToVnode(newDirectory->Parent());
ino_t parent = newDirectory->ID();
ino_t root = volume->RootNode()->ID();
while (true) {