diff --git a/Kernel/Process.h b/Kernel/Process.h index 93a0f9674e..b3ed33128b 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -536,7 +536,7 @@ private: KResult do_exec(NonnullRefPtr main_program_description, Vector arguments, Vector environment, RefPtr interpreter_description, Thread*& new_main_thread, u32& prev_flags, const ElfW(Ehdr) & main_program_header); KResultOr do_write(FileDescription&, const UserOrKernelBuffer&, size_t); - KResultOr do_statvfs(String path, statvfs* buf); + KResultOr do_statvfs(StringView path, statvfs* buf); KResultOr> find_elf_interpreter_for_executable(String const& path, ElfW(Ehdr) const& main_executable_header, size_t main_executable_header_size, size_t file_size); diff --git a/Kernel/Syscalls/statvfs.cpp b/Kernel/Syscalls/statvfs.cpp index a530266c86..f5c5c8baee 100644 --- a/Kernel/Syscalls/statvfs.cpp +++ b/Kernel/Syscalls/statvfs.cpp @@ -10,7 +10,7 @@ namespace Kernel { -KResultOr Process::do_statvfs(String path, statvfs* buf) +KResultOr Process::do_statvfs(StringView path, statvfs* buf) { auto custody = TRY(VirtualFileSystem::the().resolve_path(path, current_directory(), nullptr, 0)); auto& inode = custody->inode();