mirror of
https://github.com/palera1n/palera1n.git
synced 2026-12-06 08:14:49 +01: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:
|
clean:
|
||||||
rm -f *.o palera1n checkra1n
|
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);
|
int exitrecv_cmd(const uint64_t ecid);
|
||||||
|
|
||||||
void exec_checkra1n();
|
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));
|
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);
|
||||||
|
|||||||
Reference in new issue
Block a user