mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
Kernel: Update the ".." inode for directories after a rename
Because the ".." entry in a directory is a separate inode, if a directory is renamed to a new location, then we should update this entry the point to the new parent directory as well. Co-authored-by: Liav A <liavalb@gmail.com>
This commit is contained in:
@@ -90,6 +90,11 @@ ErrorOr<void> SysFSInode::remove_child(StringView)
|
||||
return EROFS;
|
||||
}
|
||||
|
||||
ErrorOr<void> SysFSInode::replace_child(StringView, Inode&)
|
||||
{
|
||||
return EROFS;
|
||||
}
|
||||
|
||||
ErrorOr<void> SysFSInode::chmod(mode_t)
|
||||
{
|
||||
return EPERM;
|
||||
|
||||
Reference in New Issue
Block a user