Fixes library mount (#791)

This commit is contained in:
SuchAFuriousDeath 2024-03-31 20:33:20 +02:00 committed by GitHub
parent 01c1a5d20e
commit 44e79e22fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -152,7 +152,7 @@ impl crate::fs::VnodeBackend for VnodeBackend {
let dirent = entries
.iter()
.find(|dirent| dirent.name() == name)
.ok_or_else(|| LookupError::NoParent)?;
.ok_or(LookupError::NotFound)?;
let vnode = self
.tmpfs
@ -237,7 +237,7 @@ pub enum LookupError {
#[error("tmpfs node not found")]
#[errno(ENOENT)]
NoParent,
NotFound,
#[error("failed to alloc vnode")]
FailedToAllocVnode(#[from] AllocVnodeError),

View file

@ -286,7 +286,7 @@ fn run() -> Result<(), KernelError> {
}
// TODO: Check permission of /mnt/sandbox/CUSAXXXXX_000/<SYSTEM_PATH>/common/lib on the PS4.
let lib_path = system_path.join("lib").unwrap();
let lib_path = common_path.join("lib").unwrap();
if let Err(e) = fs.mkdir(&lib_path, 0o555, None) {
return Err(KernelError::CreateDirectoryFailed(lib_path, e));