mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-22 10:51:32 +00:00
Ignore twrp fstabs
This commit is contained in:
parent
025b060506
commit
d19f65ce4a
@ -47,8 +47,11 @@ void magisk_cpio::patch() {
|
|||||||
for (auto it = entries.begin(); it != entries.end();) {
|
for (auto it = entries.begin(); it != entries.end();) {
|
||||||
auto cur = it++;
|
auto cur = it++;
|
||||||
bool fstab = (!keepverity || !keepforceencrypt) &&
|
bool fstab = (!keepverity || !keepforceencrypt) &&
|
||||||
|
S_ISREG(cur->second->mode) &&
|
||||||
!str_starts(cur->first, ".backup") &&
|
!str_starts(cur->first, ".backup") &&
|
||||||
str_contains(cur->first, "fstab") && S_ISREG(cur->second->mode);
|
!str_contains(cur->first, "twrp") &&
|
||||||
|
!str_contains(cur->first, "recovery") &&
|
||||||
|
str_contains(cur->first, "fstab");
|
||||||
if (!keepverity) {
|
if (!keepverity) {
|
||||||
if (fstab) {
|
if (fstab) {
|
||||||
fprintf(stderr, "Found fstab file [%s]\n", cur->first.data());
|
fprintf(stderr, "Found fstab file [%s]\n", cur->first.data());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user