mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-21 12:41:28 +00:00
Reduce unnecessary formatting
This commit is contained in:
parent
4318ab5cd2
commit
cd8a2edefb
@ -798,7 +798,7 @@ void disable_modules() {
|
|||||||
foreach_module([&](int, dirent *entry, int modfd) {
|
foreach_module([&](int, dirent *entry, int modfd) {
|
||||||
close(xopenat(modfd, "disable", O_RDONLY | O_CREAT | O_CLOEXEC, 0));
|
close(xopenat(modfd, "disable", O_RDONLY | O_CREAT | O_CLOEXEC, 0));
|
||||||
if (off) {
|
if (off) {
|
||||||
ssprintf(buf + off, sizeof(buf) - off, "/%s/%s", entry->d_name, "sepolicy.rule");
|
ssprintf(buf + off, sizeof(buf) - off, "/%s/sepolicy.rule", entry->d_name);
|
||||||
unlink(buf);
|
unlink(buf);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -812,7 +812,7 @@ void remove_modules() {
|
|||||||
if (access(uninstaller.data(), F_OK) == 0)
|
if (access(uninstaller.data(), F_OK) == 0)
|
||||||
exec_script(uninstaller.data());
|
exec_script(uninstaller.data());
|
||||||
if (off) {
|
if (off) {
|
||||||
ssprintf(buf + off, sizeof(buf) - off, "/%s/%s", entry->d_name, "sepolicy.rule");
|
ssprintf(buf + off, sizeof(buf) - off, "/%s/sepolicy.rule", entry->d_name);
|
||||||
unlink(buf);
|
unlink(buf);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user