IOS/FS: Make sure FS root directory exists

Previously, the FS root directory would get created as a side
effect of calling CreateDirectory during boot (since the
implementation was sloppy and used File::CreateFullDir).

Since CreateDirectory no longer does that, it is necessary to ensure
that the FS root directory does exist by creating it explicitly.
This commit is contained in:
Léo Lam 2019-12-29 17:29:53 +01:00
parent 0543598574
commit a83d9e5600
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ bool HostFileSystem::FstEntry::CheckPermission(Uid caller_uid, Gid caller_gid,
HostFileSystem::HostFileSystem(const std::string& root_path) : m_root_path{root_path} HostFileSystem::HostFileSystem(const std::string& root_path) : m_root_path{root_path}
{ {
File::CreateFullPath(m_root_path + "/");
ResetFst(); ResetFst();
LoadFst(); LoadFst();
} }