You've already forked ZygiskNext
mirror of
https://github.com/Dr-TSNG/ZygiskNext.git
synced 2025-08-27 23:46:34 +00:00
Fix stupid remount bug
This commit is contained in:
@@ -10,7 +10,7 @@ static void lazy_unmount(const char* mountpoint) {
|
||||
if (umount2(mountpoint, MNT_DETACH) != -1) {
|
||||
LOGD("Unmounted (%s)", mountpoint);
|
||||
} else {
|
||||
PLOGE("Failed to unmount: %s (%s)", strerror(errno), mountpoint);
|
||||
LOGW("Failed to unmount: %s (%s)", strerror(errno), mountpoint);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,12 +45,10 @@ void revert_unmount() {
|
||||
|
||||
parse_mnt("/proc/self/mounts", [&](mntent* mentry) {
|
||||
if (mentry->mnt_type == "overlay"sv) {
|
||||
for (auto it = backups.begin(); it != backups.end(); it++) {
|
||||
backups.remove_if([&](auto& mnt) {
|
||||
return mnt.first == mentry->mnt_dir && mnt.second == mentry->mnt_opts;
|
||||
});
|
||||
}
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user