mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 23:14:03 -05:00
Migrate prepare_modules to Rust
This commit is contained in:
@@ -21,7 +21,7 @@ pub(crate) fn switch_root(path: &Utf8CStr) {
|
||||
let res: LoggedResult<()> = try {
|
||||
debug!("Switch root to {}", path);
|
||||
let mut mounts = BTreeSet::new();
|
||||
let mut rootfs = Directory::open(cstr!("/"))?;
|
||||
let rootfs = Directory::open(cstr!("/"))?;
|
||||
for info in parse_mount_info("self") {
|
||||
if info.target == "/" || info.target.as_str() == path.as_str() {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user