mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-08 16:12:23 +02:00
Kernel/VFS: Don't rely on parent custodies being the same object
This assumption doesn't hold without the current Custody caching mechanism.
This commit is contained in:
committed by
Sönke Holz
parent
e97d676879
commit
7cf3c76295
@@ -134,7 +134,7 @@ bool VirtualFileSystem::check_matching_absolute_path_hierarchy(Custody const& fi
|
||||
while (custody1->parent()) {
|
||||
if (!custody2->parent())
|
||||
return false;
|
||||
if (custody1->parent().ptr() != custody2->parent().ptr())
|
||||
if (&custody1->parent()->inode() != &custody2->parent()->inode())
|
||||
return false;
|
||||
custody1 = custody1->parent();
|
||||
custody2 = custody2->parent();
|
||||
|
||||
Reference in New Issue
Block a user