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:
parent
569eafd85e
commit
b6b002b81e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user