summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1993-10-08 02:38:15 +0000
committerjkh <jkh@FreeBSD.org>1993-10-08 02:38:15 +0000
commit40e400f2e08667c1365565bf5df793478e0eafd2 (patch)
treeaca6bdc8ef5c0268fd14209de3fca52e0ffeaa44 /gnu/usr.bin/man
parent72694b8f1f8d76f1bc05e2616dd2ea456906b76f (diff)
downloadFreeBSD-src-40e400f2e08667c1365565bf5df793478e0eafd2.zip
FreeBSD-src-40e400f2e08667c1365565bf5df793478e0eafd2.tar.gz
More paranoid dealings with system()
Diffstat (limited to 'gnu/usr.bin/man')
-rw-r--r--gnu/usr.bin/man/lib/util.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gnu/usr.bin/man/lib/util.c b/gnu/usr.bin/man/lib/util.c
index b0babed..f462e3e 100644
--- a/gnu/usr.bin/man/lib/util.c
+++ b/gnu/usr.bin/man/lib/util.c
@@ -137,14 +137,8 @@ do_system_command (command)
else
status = system (command);
- /*
- * Ultrix returns 127 for failure. Is this normal?
- */
- if (status == 127)
- {
- gripe_system_command (status);
- return 0;
- }
+ if (status)
+ return 0;
else
return 1;
}
OpenPOWER on IntegriCloud