mirror of
https://github.com/darlinghq/darlingserver.git
synced 2024-12-04 02:21:27 +00:00
Change the way we execute vchroot through mldr
This commit is contained in:
parent
2101f7a5a5
commit
7fc5c61a80
@ -263,7 +263,7 @@ void spawnLaunchd(const char* prefix)
|
|||||||
|
|
||||||
setenv("DYLD_ROOT_PATH", LIBEXEC_PATH, 1);
|
setenv("DYLD_ROOT_PATH", LIBEXEC_PATH, 1);
|
||||||
setenv("__mldr_sockpath", tmp.c_str(), 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));
|
fprintf(stderr, "Failed to exec launchd: %s\n", strerror(errno));
|
||||||
abort();
|
abort();
|
||||||
|
Loading…
Reference in New Issue
Block a user