mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 22:44:58 +00:00
FileSystem: Rename VFS::fchmod() -> chmod().
This commit is contained in:
parent
e67bfdb7f6
commit
a53c922f8a
3 changed files with 4 additions and 4 deletions
|
@ -317,7 +317,7 @@ KResultOr<Retained<Custody>> VFS::open_directory(StringView path, Custody& base)
|
|||
return custody;
|
||||
}
|
||||
|
||||
KResult VFS::fchmod(Inode& inode, mode_t mode)
|
||||
KResult VFS::chmod(Inode& inode, mode_t mode)
|
||||
{
|
||||
if (inode.fs().is_readonly())
|
||||
return KResult(-EROFS);
|
||||
|
@ -337,7 +337,7 @@ KResult VFS::chmod(StringView path, mode_t mode, Custody& base)
|
|||
return custody_or_error.error();
|
||||
auto& custody = *custody_or_error.value();
|
||||
auto& inode = custody.inode();
|
||||
return fchmod(inode, mode);
|
||||
return chmod(inode, mode);
|
||||
}
|
||||
|
||||
KResult VFS::rename(StringView old_path, StringView new_path, Custody& base)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue