Change the way we execute vchroot through mldr

This commit is contained in:
Ariel Abreu 2022-07-27 19:46:01 -04:00
parent 2101f7a5a5
commit 7fc5c61a80
No known key found for this signature in database
GPG Key ID: 8031B538781E183F

View File

@ -263,7 +263,7 @@ void spawnLaunchd(const char* prefix)
setenv("DYLD_ROOT_PATH", LIBEXEC_PATH, 1);
setenv("__mldr_sockpath", tmp.c_str(), 1);
execl(DarlingServer::Config::defaultMldrPath.data(), "mldr!" LIBEXEC_PATH "/usr/libexec/darling/vchroot", "vchroot", prefix, initPath, NULL);
execl(DarlingServer::Config::defaultMldrPath.data(), "mldr", LIBEXEC_PATH "/usr/libexec/darling/vchroot", "vchroot", prefix, initPath, NULL);
fprintf(stderr, "Failed to exec launchd: %s\n", strerror(errno));
abort();