summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-03-19 21:26:00 +0000
committerphk <phk@FreeBSD.org>1995-03-19 21:26:00 +0000
commitcd13439f7fcbddc784167aae6bfd32eb8770b780 (patch)
tree8131d4fb96ea8729416f66d2fd73412976d06a57 /usr.sbin/ctm
parent2d04d640970f4fccbb63d5ca1b7f921a4ed1e260 (diff)
downloadFreeBSD-src-cd13439f7fcbddc784167aae6bfd32eb8770b780.zip
FreeBSD-src-cd13439f7fcbddc784167aae6bfd32eb8770b780.tar.gz
Make extra arguments be subdirs to go through.
Diffstat (limited to 'usr.sbin/ctm')
-rw-r--r--usr.sbin/ctm/ctm_scan/ctm_scan.c13
1 files 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 e925b0c..bd6dd7f 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 <stdio.h>
@@ -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(".");
}
OpenPOWER on IntegriCloud