summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--privexec/privexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/privexec/privexec.c b/privexec/privexec.c
index 1b7a54e..4e3816c 100644
--- a/privexec/privexec.c
+++ b/privexec/privexec.c
@@ -30,7 +30,7 @@ static int check_privileges(char *argv[])
}
int status = 1;
- if (waitpid(pid, &status, 0) != 0) {
+ if (waitpid(pid, &status, 0) == -1) {
perror(PATH_CHECK);
return 1;
}