Import NetBSD true and false commands

Replaces the 'true' and 'false' functionality provided by commands/true
and commands/false.

Change-Id: I736efb9a650f3154eb21e442d676a0f5d2dee957
This commit is contained in:
Zachary Storer
2014-07-28 17:05:09 +02:00
committed by sambuc
parent 757e83288a
commit 1d48ef9844
19 changed files with 143 additions and 48 deletions
+2 -2
View File
@@ -88,8 +88,8 @@ int main(int argc, char *argv[])
fprintf(stderr,"%s: fork failed\n", argv[0]);
exit(1);
} else if (pid == 0) {
execl("/bin/true", (char *) 0);
fprintf(stderr,"%s: exec /bin/true failed\n", argv[0]);
execl("/usr/bin/true", (char *) 0);
fprintf(stderr,"%s: exec /usr/bin/true failed\n", argv[0]);
exit(1);
} else {
if (waitpid(pid, NULL, 0) < 0) {