summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/co.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-11-21 16:20:30 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-11-21 16:20:30 +0000
commit24ae1eb837a8bb677dd453e04d69f366f2a990f3 (patch)
tree824fb3a3918b5a9f0248786948eb7797ba308d14 /usr.bin/rcs/co.c
parent0d73ecfdaec0cb177f249635d82d7db9568a689c (diff)
enable `-xsuffixes' support as it has been added a few days ago
in rcs_statfile(); niallo ok
Diffstat (limited to 'usr.bin/rcs/co.c')
-rw-r--r--usr.bin/rcs/co.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index 5a7b5d32f88..18e62571879 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.29 2005/11/08 09:22:47 xsa Exp $ */
+/* $OpenBSD: co.c,v 1.30 2005/11/21 16:20:29 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -59,7 +59,7 @@ checkout_main(int argc, char **argv)
exit (1);
}
- while ((ch = rcs_getopt(argc, argv, "f::l::M::p::qr::s:u::V")) != -1) {
+ while ((ch = rcs_getopt(argc, argv, "f::l::M::p::qr::s:u::Vx:")) != -1) {
switch (ch) {
case 'f':
rcs_set_rev(rcs_optarg, &rev);
@@ -97,6 +97,9 @@ checkout_main(int argc, char **argv)
case 'V':
printf("%s\n", rcs_version);
exit(0);
+ case 'x':
+ rcs_suffixes = rcs_optarg;
+ break;
default:
(usage)();
exit(1);