support checkra1n clones being passed into -i

This commit is contained in:
Nick Chan committed 2023-03-08 16:49:18 +08:00
1 parent d974100585
commit 2a7df193ce
7 files changed
+112 -4

No files matched your search

+7 -2
View File
@@ -97,9 +97,14 @@ int exec_checkra1n(void) {
}
#endif
checkra1n_exec: {};
char args[0x10] = "-pE";
char args[0x10] = "-E";
if (checkrain_option_enabled(host_flags, host_option_demote)) strncat(args, "d", 0xf);
if (verbose >= 2) strncat(args, "v", 0xf);
if (!checkrain_option_enabled(host_flags, palerain_option_checkrain_is_clone)) {
strncat(args, "p", 0xf);
if (verbose >= 2) strncat(args, "v", 0xf);
} else {
strncat(args, "R", 0xf);
}
if (pongo_path != NULL) strncat(args, "k", 0xf); // keep this at last
pid_t pid;
char* checkra1n_argv[] = {