Skip to content

Commit

Permalink
Fixes library mount (obhq#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuchAFuriousDeath committed Mar 31, 2024
1 parent 01c1a5d commit 44e79e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/kernel/src/fs/tmp/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -237,7 +237,7 @@ pub enum LookupError {

#[error("tmpfs node not found")]
#[errno(ENOENT)]
NoParent,
NotFound,

#[error("failed to alloc vnode")]
FailedToAllocVnode(#[from] AllocVnodeError),
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 44e79e2

Please sign in to comment.