summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/server.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2007-06-29 12:42:06 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2007-06-29 12:42:06 +0000
commit1baf0bb4f000ef7c3f2ef43d8e3f4d3479527d99 (patch)
tree2323f5f85861a6333752ea7c816aa44dbccb787e /usr.bin/cvs/server.c
parent163634d5cf8f7e686b9403fce43fcb5c07f9aa97 (diff)
Server-side bits for release command.
Diffstat (limited to 'usr.bin/cvs/server.c')
-rw-r--r--usr.bin/cvs/server.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index 2499afeafe3..c15e21f58fd 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.63 2007/06/27 20:42:19 joris Exp $ */
+/* $OpenBSD: server.c,v 1.64 2007/06/29 12:42:05 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -550,6 +550,17 @@ cvs_server_init(char *data)
}
void
+cvs_server_release(char *data)
+{
+ if (chdir(server_currentdir) == -1)
+ fatal("cvs_server_init: %s", strerror(errno));
+
+ cvs_cmdop = CVS_OP_RELEASE;
+ cvs_release(server_argc, server_argv);
+ cvs_server_send_response("ok");
+}
+
+void
cvs_server_remove(char *data)
{
if (chdir(server_currentdir) == -1)