summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2009-01-28 17:40:14 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2009-01-28 17:40:14 +0000
commitd058f8854954d42c4bf717313777ff43aa7e53ce (patch)
treec32b1e6cdd7f7e435b017366ea346e011d08abaa /usr.bin
parent8b9efb273c5ec82bdb0a1aff73776f3f649e7481 (diff)
enable -d for the export command.
ok joris@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/checkout.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c
index 01bf1e78b69..8e77f67078d 100644
--- a/usr.bin/cvs/checkout.c
+++ b/usr.bin/cvs/checkout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: checkout.c,v 1.156 2008/07/08 12:29:58 joris Exp $ */
+/* $OpenBSD: checkout.c,v 1.157 2009/01/28 17:40:13 pyr Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -181,6 +181,15 @@ cvs_export(int argc, char **argv)
while ((ch = getopt(argc, argv, cvs_cmd_export.cmd_opts)) != -1) {
switch (ch) {
+ case 'd':
+ if (dflag != NULL)
+ fatal("-d specified two or more times");
+ dflag = optarg;
+ checkout_target_dir = dflag;
+
+ if (cvs_server_active == 1)
+ disable_fast_checkout = 1;
+ break;
case 'k':
koptstr = optarg;
kflag = rcs_kflag_get(koptstr);