diff options
author | Isaac Dunham <ibid.ag@gmail.com> | 2014-06-10 08:29:10 -0500 |
---|---|---|
committer | Isaac Dunham <ibid.ag@gmail.com> | 2014-06-10 08:29:10 -0500 |
commit | b5f97805cee1daab12641ad8927d0539aa0d99ac (patch) | |
tree | b395dc6558dfa6b9d29732e46c6e9fd6c04ca47c /toys/pending | |
parent | ef377cf6f6a1e89696df1b0c8d847000a172f846 (diff) | |
download | toybox-b5f97805cee1daab12641ad8927d0539aa0d99ac.tar.gz |
pending/useradd: unbreak build
When useradd started using xfork(), the conditional in else if (pid > 0)
became unnecessary, since else means pid is nonzero and xfork makes it
non-negative. However, the "if" was not deleted.
Diffstat (limited to 'toys/pending')
-rw-r--r-- | toys/pending/useradd.c | 2 |
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; } |