mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
argv not qrgv
This commit is contained in:
1 parent
1afa5e6fd6
commit
b9755d6964
3 files changed
+5
-5
No files matched your search
+1
-1
@@ -22,4 +22,4 @@ palera1n: $(OBJECTS)
|
||||
clean:
|
||||
rm -f *.o palera1n checkra1n
|
||||
|
||||
.PHONY: all clean
|
||||
.PHONY: all clean
|
||||
+1
-1
@@ -58,4 +58,4 @@ int autoboot_cmd(const uint64_t ecid);
|
||||
int exitrecv_cmd(const uint64_t ecid);
|
||||
|
||||
void exec_checkra1n();
|
||||
#endif
|
||||
#endif
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user