You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Fix xperm parsing logic
This commit is contained in:
@@ -164,7 +164,11 @@ fn xperm_to_string(perm: &ffi::Xperm) -> String {
|
||||
if perm.reset {
|
||||
s.push('~');
|
||||
}
|
||||
s.write_fmt(format_args!("{{ {:#06x}-{:#06x} }}", perm.low, perm.high))
|
||||
.ok();
|
||||
if perm.low == perm.high {
|
||||
s.write_fmt(format_args!("{{ {:#06X} }}", perm.low)).ok();
|
||||
} else {
|
||||
s.write_fmt(format_args!("{{ {:#06X}-{:#06X} }}", perm.low, perm.high))
|
||||
.ok();
|
||||
}
|
||||
s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user