mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-08 08:02:05 +02:00
Kernel/VFS: Don't explicitly remove "." and ".." entries
No behavior change intended.
This commit is contained in:
committed by
Nico Weber
parent
0e94887b2c
commit
8ed7225810
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user