mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-05-22 16:28:17 +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 path = cstr::buf::default();
|
||||||
let mut components = self.split('/').filter(|s| !s.is_empty());
|
let mut components = self.split('/').filter(|s| !s.is_empty());
|
||||||
|
|
||||||
|
if self.starts_with('/') {
|
||||||
|
path.append_path("/");
|
||||||
|
}
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let Some(s) = components.next() else {
|
let Some(s) = components.next() else {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user