argv not qrgv

This commit is contained in:
Nick Chan committed 2023-01-16 18:06:23 +08:00
1 parent 1afa5e6fd6
commit b9755d6964
1 file changed
+3 -3
+3 -3
View File
@@ -39,13 +39,13 @@ void exec_checkra1n() {
LOG(LOG_FATAL, "Cannot chmod %s: %d (%s)", checkra1n_path, errno, strerror(errno)); LOG(LOG_FATAL, "Cannot chmod %s: %d (%s)", checkra1n_path, errno, strerror(errno));
unlink(checkra1n_path); unlink(checkra1n_path);
} }
char* checkra1n_qrgv[] = { char* checkra1n_argv[] = {
checkra1n_path, checkra1n_path,
"-pVE", "-pvE",
NULL NULL
}; };
pid_t pid; pid_t pid;
ret = posix_spawn(&pid, checkra1n_path, NULL, NULL, checkra1n_qrgv, environ); ret = posix_spawn(&pid, checkra1n_path, NULL, NULL, checkra1n_argv, environ);
if (ret) { if (ret) {
LOG(LOG_FATAL, "Cannot posix spawn %s: %d (%s)", checkra1n_path, errno, strerror(errno)); LOG(LOG_FATAL, "Cannot posix spawn %s: %d (%s)", checkra1n_path, errno, strerror(errno));
unlink(checkra1n_path); unlink(checkra1n_path);