/* * Copyright (c) 2024, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include namespace Kernel { ErrorOr> CustodyBase::resolve() const { if (m_base) return *m_base; if (KLexicalPath::is_absolute(m_path)) return VirtualFileSystem::the().root_custody(); return Process::current().custody_for_dirfd({}, m_dirfd); } }