From b9755d696423bbc94e30f6117d5c70e18b77c931 Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Mon, 16 Jan 2023 18:06:23 +0800 Subject: [PATCH] argv not qrgv --- src/Makefile | 2 +- src/common.h | 2 +- src/exec_checkra1n.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index b34be54..e3f718a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -22,4 +22,4 @@ palera1n: $(OBJECTS) clean: rm -f *.o palera1n checkra1n -.PHONY: all clean \ No newline at end of file +.PHONY: all clean diff --git a/src/common.h b/src/common.h index cfffeb8..bf8a350 100644 --- a/src/common.h +++ b/src/common.h @@ -58,4 +58,4 @@ int autoboot_cmd(const uint64_t ecid); int exitrecv_cmd(const uint64_t ecid); void exec_checkra1n(); -#endif \ No newline at end of file +#endif diff --git a/src/exec_checkra1n.c b/src/exec_checkra1n.c index ea40dca..2175b6a 100644 --- a/src/exec_checkra1n.c +++ b/src/exec_checkra1n.c @@ -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);