summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-03-24 21:36:32 +0000
committerphk <phk@FreeBSD.org>1995-03-24 21:36:32 +0000
commit2a40c777372022fadaa36ef2eb19dea0ff0b15b6 (patch)
treeee20a00e2d3e3412b42cf2189d031f8656772ac1 /usr.sbin
parent6abc04ee9024eade249b1820875666d68160b8af (diff)
downloadFreeBSD-src-2a40c777372022fadaa36ef2eb19dea0ff0b15b6.zip
FreeBSD-src-2a40c777372022fadaa36ef2eb19dea0ff0b15b6.tar.gz
Make sure exit() is sensible;
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ctm/ctm_scan/ctm_scan.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/ctm/ctm_scan/ctm_scan.c b/usr.sbin/ctm/ctm_scan/ctm_scan.c
index e521dde..8650578 100644
--- a/usr.sbin/ctm/ctm_scan/ctm_scan.c
+++ b/usr.sbin/ctm/ctm_scan/ctm_scan.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: ctm_scan.c,v 1.8 1995/03/19 21:26:00 phk Exp $
+ * $Id: ctm_scan.c,v 1.9 1995/03/24 21:33:20 phk Exp $
*
*/
#include <stdio.h>
@@ -138,6 +138,8 @@ Do(char *path)
int
main(int argc, char **argv)
{
+ int i;
+
/*
* Initialize barf[], characters diff/patch will not appreciate.
*/
@@ -173,10 +175,13 @@ main(int argc, char **argv)
*/
if (argc > 1) {
while (argc > 1) {
- Do(argv[1]);
+ i = Do(argv[1]);
argc--;
argv++;
+ if (i)
+ return i;
}
+ return i;
} else
return Do(".");
}
OpenPOWER on IntegriCloud