From d0e9ecfc97f601a44884092473711d70ee833ebe Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Thu, 27 Jan 2022 17:12:36 -0500 Subject: [PATCH] hopefully actually account for errors --- src/exploit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exploit.c b/src/exploit.c index 2edd093..cd71833 100644 --- a/src/exploit.c +++ b/src/exploit.c @@ -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..");