1
0
Fork 0
forked from AbleOS/ableos

VFS: fix little oopsie

This commit is contained in:
TheOddGarlic 2022-08-07 20:01:44 +03:00
parent 0cc1aaa64f
commit 8e487e1697

View file

@ -54,7 +54,7 @@ impl VirtualFileSystem {
Err(FsError::NotAbsolute)?; 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 / components.next(); // throw the empty string caused by the root /
// will be initialised beforehand so okay to unwrap // will be initialised beforehand so okay to unwrap
let mut resolved_node = self.root_handle.unwrap(); let mut resolved_node = self.root_handle.unwrap();