summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/server.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-21 16:36:47 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-21 16:36:47 +0000
commit15898420b698ef6903c46af4084c532aeb09cc81 (patch)
tree1cb38fa4340dee984513f42b3b6233b86260c637 /usr.bin/cvs/server.c
parent0e676bb7aa999a2d725c7a7655fe84ee5e6e77f2 (diff)
Fixed export to be fully functional and compliant to GNU cvs in local and
remote setups. OK xsa@
Diffstat (limited to 'usr.bin/cvs/server.c')
-rw-r--r--usr.bin/cvs/server.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index 13278dffcbe..2264a86d120 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.75 2008/01/10 11:20:29 tobias Exp $ */
+/* $OpenBSD: server.c,v 1.76 2008/01/21 16:36:46 tobias Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -574,6 +574,16 @@ cvs_server_diff(char *data)
}
void
+cvs_server_export(char *data)
+{ if (chdir(server_currentdir) == -1)
+ fatal("cvs_server_checkout: %s", strerror(errno));
+
+ cvs_cmdop = CVS_OP_EXPORT;
+ cvs_checkout(server_argc, server_argv);
+ cvs_server_send_response("ok");
+}
+
+void
cvs_server_init(char *data)
{
if (data == NULL)