mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-25 06:47:30 +00:00
core: fix mkdirs
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user