argv not qrgv

This commit is contained in:
Nick Chan committed 2023-01-16 18:06:23 +08:00
1 parent 1afa5e6fd6
commit b9755d6964
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -22,4 +22,4 @@ palera1n: $(OBJECTS)
clean:
rm -f *.o palera1n checkra1n
.PHONY: all clean
.PHONY: all clean
+1 -1
View File
@@ -58,4 +58,4 @@ int autoboot_cmd(const uint64_t ecid);
int exitrecv_cmd(const uint64_t ecid);
void exec_checkra1n();
#endif
#endif
+3 -3
View File
@@ -39,13 +39,13 @@ void exec_checkra1n() {
LOG(LOG_FATAL, "Cannot chmod %s: %d (%s)", checkra1n_path, errno, strerror(errno));
unlink(checkra1n_path);
}
char* checkra1n_qrgv[] = {
char* checkra1n_argv[] = {
checkra1n_path,
"-pVE",
"-pvE",
NULL
};
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) {
LOG(LOG_FATAL, "Cannot posix spawn %s: %d (%s)", checkra1n_path, errno, strerror(errno));
unlink(checkra1n_path);