mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-05-22 11:08:16 +00:00
core: fix mkdirs
This commit is contained in:
parent
30bd7d6555
commit
86da917174
@ -261,6 +261,11 @@ impl Utf8CStr {
|
||||
|
||||
let mut path = cstr::buf::default();
|
||||
let mut components = self.split('/').filter(|s| !s.is_empty());
|
||||
|
||||
if self.starts_with('/') {
|
||||
path.append_path("/");
|
||||
}
|
||||
|
||||
loop {
|
||||
let Some(s) = components.next() else {
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user