Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 404eb9ce authored by Jakub Adamek's avatar Jakub Adamek Committed by android-build-merger
Browse files

Fix idmap calls when a subdir is present. am: 56b9987e

am: 47c7e1e9

Change-Id: I30a8a7531080bd52145219f62133e78198eb1006
parents 0182513d 47c7e1e9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ static void verifySystemIdmaps()
                }

                // Generic idmap parameters
                const char* argv[7];
                const char* argv[8];
                int argc = 0;
                struct stat st;

@@ -192,7 +192,7 @@ static void verifySystemIdmaps()
                // Finally, invoke idmap (if any overlay directory exists)
                if (argc > 5) {
                    execv(AssetManager::IDMAP_BIN, (char* const*)argv);
                    ALOGE("failed to execl for idmap: %s", strerror(errno));
                    ALOGE("failed to execv for idmap: %s", strerror(errno));
                    exit(1); // should never get here
                } else {
                    exit(0);