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

Commit 47c7e1e9 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

Change-Id: Ia58f447ec6bf3b63e2922b02a794f487ec9679d0
parents 1a10780c 56b9987e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ static void verifySystemIdmaps()
                }

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

@@ -203,7 +203,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);