Minor refactoring

This commit is contained in:
topjohnwu
2022-09-21 03:09:46 +02:00
parent 0b82fe197c
commit 48f829b76e
7 changed files with 35 additions and 37 deletions
+2 -2
View File
@@ -118,8 +118,8 @@ static void switch_root(const string &path) {
void MagiskInit::mount_rules_dir() {
char path[128];
xcanonical_path(BLOCKDIR, blk_info.block_dev, sizeof(blk_info.block_dev));
xcanonical_path(MIRRDIR, path, sizeof(path));
xrealpath(BLOCKDIR, blk_info.block_dev, sizeof(blk_info.block_dev));
xrealpath(MIRRDIR, path, sizeof(path));
char *b = blk_info.block_dev + strlen(blk_info.block_dev);
char *p = path + strlen(path);