Kernel/VFS: Don't explicitly remove "." and ".." entries

No behavior change intended.
This commit is contained in:
implicitfield
2024-12-02 00:31:13 +02:00
committed by Nico Weber
parent 0e94887b2c
commit 8ed7225810
4 changed files with 21 additions and 7 deletions

View File

@@ -1038,9 +1038,6 @@ ErrorOr<void> VirtualFileSystem::rmdir(VFSRootContext const& vfs_root_context, C
if (custody->is_readonly())
return EROFS;
TRY(inode.remove_child("."sv));
TRY(inode.remove_child(".."sv));
return parent_inode.remove_child(KLexicalPath::basename(path));
}