mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-29 04:43:46 +01:00
changes
This commit is contained in:
1 parent
c2bb49287a
commit
047b334752
1 file changed
+16
-9
+16
-9
@@ -134,18 +134,25 @@ checkra1n_exec: {};
|
|||||||
} else {
|
} else {
|
||||||
strncat(args, "R", 0xf);
|
strncat(args, "R", 0xf);
|
||||||
}
|
}
|
||||||
if (pongo_path != NULL) {
|
|
||||||
setenv("CHECKRA1N_OVERRIDE_PONGO", pongo_path, 1);
|
|
||||||
}
|
|
||||||
LOG(LOG_VERBOSE5, args);
|
LOG(LOG_VERBOSE5, args);
|
||||||
if (pongo_path != NULL) LOG(LOG_VERBOSE5, pongo_path);
|
if (pongo_path != NULL) LOG(LOG_VERBOSE5, pongo_path);
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
char* checkra1n_argv[] = {
|
if (pongo_path != NULL) {
|
||||||
checkra1n_path,
|
ret = posix_spawn(&pid, checkra1n_path, NULL, NULL, (char* []){
|
||||||
args,
|
checkra1n_path,
|
||||||
NULL
|
args,
|
||||||
};
|
"-k",
|
||||||
ret = posix_spawn(&pid, checkra1n_path, NULL, NULL, checkra1n_argv, environ);
|
pongo_path,
|
||||||
|
NULL
|
||||||
|
}, environ);
|
||||||
|
} else {
|
||||||
|
ret = posix_spawn(&pid, checkra1n_path, NULL, NULL, (char* []){
|
||||||
|
checkra1n_path,
|
||||||
|
args,
|
||||||
|
NULL
|
||||||
|
}, environ);
|
||||||
|
}
|
||||||
|
|
||||||
waitpid(pid, NULL, 0);
|
waitpid(pid, NULL, 0);
|
||||||
if (!external_pongo && pongo_path != NULL) {
|
if (!external_pongo && pongo_path != NULL) {
|
||||||
unlink(pongo_path);
|
unlink(pongo_path);
|
||||||
|
|||||||
Reference in new issue
Block a user