From 3f2bb499c16377c5e711a1cd760fd24fd1509aa0 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 19 Mar 1995 21:26:00 +0000 Subject: [PATCH] Make extra arguments be subdirs to go through. --- usr.sbin/ctm/ctm_scan/ctm_scan.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ctm/ctm_scan/ctm_scan.c b/usr.sbin/ctm/ctm_scan/ctm_scan.c index e925b0ca8395..bd6dd7f5c102 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.6 1994/09/26 06:00:55 phk Exp $ + * $Id: ctm_scan.c,v 1.7 1994/12/03 22:54:04 phk Exp $ * */ #include @@ -164,10 +164,19 @@ main(int argc, char **argv) perror(argv[1]); return 2; } + argc--; + argv++; } /* * Scan the directories recursively. */ - return Do("."); + if (argc > 1) { + while (argc > 1) { + Do(argv[1]); + argc--; + argv++; + } + } else + return Do("."); }