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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user