From d058f8854954d42c4bf717313777ff43aa7e53ce Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ritschard Date: Wed, 28 Jan 2009 17:40:14 +0000 Subject: enable -d for the export command. ok joris@ --- usr.bin/cvs/checkout.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 * @@ -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); -- cgit v1.2.3