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:
@@ -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 we meet our inode on that way, we have to bail out.
|
||||||
|
|
||||||
if (oldDirectory != newDirectory) {
|
if (oldDirectory != newDirectory) {
|
||||||
ino_t parent = volume->ToVnode(newDirectory->Parent());
|
ino_t parent = newDirectory->ID();
|
||||||
ino_t root = volume->RootNode()->ID();
|
ino_t root = volume->RootNode()->ID();
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user