hopefully actually account for errors

master
Drake 2 years ago
parent e1df8a585c
commit d0e9ecfc97

@ -63,7 +63,7 @@ void runAndClean(char * const env[], char * const arg[]) {
else {
int status;
waitpid(pid, &status, 0);
if (WEXITSTATUS(status) == 126) {
if (WEXITSTATUS(status) == 127 || WEXITSTATUS(status) == 1) {
print("[Pwnkit] Failed to execute pkexec, or it returned an error; your system is most likely patched!");
}
print("[Pwnkit] Cleaning up..");

Loading…
Cancel
Save