From 8e487e1697fcc61d6f9c52905d50ac873f1c5382 Mon Sep 17 00:00:00 2001 From: TheOddGarlic Date: Sun, 7 Aug 2022 20:01:44 +0300 Subject: [PATCH] VFS: fix little oopsie --- ableos/src/filesystem/vfs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ableos/src/filesystem/vfs.rs b/ableos/src/filesystem/vfs.rs index e1cc3f94..a7e22032 100644 --- a/ableos/src/filesystem/vfs.rs +++ b/ableos/src/filesystem/vfs.rs @@ -54,7 +54,7 @@ impl VirtualFileSystem { Err(FsError::NotAbsolute)?; } - let mut components = path.split_terminator(path); + let mut components = path.split_terminator('/'); components.next(); // throw the empty string caused by the root / // will be initialised beforehand so okay to unwrap let mut resolved_node = self.root_handle.unwrap();