aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/pending/useradd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/useradd.c b/toys/pending/useradd.c
index 99e2530f..0a79064b 100644
--- a/toys/pending/useradd.c
+++ b/toys/pending/useradd.c
@@ -61,7 +61,7 @@ static int exec_wait(char **args)
pid_t pid = xfork();
if (!pid) xexec(args);
- else if waitpid(pid, &status, 0);
+ else waitpid(pid, &status, 0);
return WIFEXITED(status) ? WEXITSTATUS(status) : WTERMSIG(status)+127;
}