summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-02 12:36:38 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-02 12:52:21 +0200
commita53c922f8a56130c6d25daa24161e30e74aaa4ab (patch)
tree519d85bdc88ed846901d3842f1e2c1f1e4dafaa4 /Kernel/FileSystem
parente67bfdb7f664dc25f73fba158ce377c9a96f3940 (diff)
downloadserenity-a53c922f8a56130c6d25daa24161e30e74aaa4ab.zip
FileSystem: Rename VFS::fchmod() -> chmod().
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/FileDescriptor.cpp2
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.cpp4
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/FileSystem/FileDescriptor.cpp b/Kernel/FileSystem/FileDescriptor.cpp
index b807df44fd..f760792757 100644
--- a/Kernel/FileSystem/FileDescriptor.cpp
+++ b/Kernel/FileSystem/FileDescriptor.cpp
@@ -88,7 +88,7 @@ KResult FileDescriptor::fchmod(mode_t mode)
{
if (!m_inode)
return KResult(-EBADF);
- return VFS::the().fchmod(*m_inode, mode);
+ return VFS::the().chmod(*m_inode, mode);
}
off_t FileDescriptor::seek(off_t offset, int whence)
diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp
index fca73d4728..e4ba6cafd4 100644
--- a/Kernel/FileSystem/VirtualFileSystem.cpp
+++ b/Kernel/FileSystem/VirtualFileSystem.cpp
@@ -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)
diff --git a/Kernel/FileSystem/VirtualFileSystem.h b/Kernel/FileSystem/VirtualFileSystem.h
index 548d860fa3..4edbb3c0bd 100644
--- a/Kernel/FileSystem/VirtualFileSystem.h
+++ b/Kernel/FileSystem/VirtualFileSystem.h
@@ -68,7 +68,7 @@ public:
KResult symlink(StringView target, StringView linkpath, Custody& base);
KResult rmdir(StringView path, Custody& base);
KResult chmod(StringView path, mode_t, Custody& base);
- KResult fchmod(Inode&, mode_t);
+ KResult chmod(Inode&, mode_t);
KResult chown(StringView path, uid_t, gid_t, Custody& base);
KResult chown(Inode&, uid_t, gid_t);
KResult access(StringView path, int mode, Custody& base);