mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 12:38:38 -10: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:
1 parent
e97d676879
commit
7cf3c76295
1 file changed
+1
-1
@@ -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