summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-12-15 13:12:15 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-12-15 13:12:15 +0000
commit2f75ad8de9714874983eb01b7942e138e9c2897c (patch)
treed28f0c045fdc18b6038b0f2f66f4a254a04c3706 /usr.bin
parentc35d95343a1970fcfcb3562f72c6670846b810ae (diff)
dummy support for update-patches request.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/client.c4
-rw-r--r--usr.bin/cvs/remote.h3
-rw-r--r--usr.bin/cvs/server.c14
3 files changed, 17 insertions, 4 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c
index a603b8d6458..8de9f59bee7 100644
--- a/usr.bin/cvs/client.c
+++ b/usr.bin/cvs/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.32 2006/12/15 09:50:37 xsa Exp $ */
+/* $OpenBSD: client.c,v 1.33 2006/12/15 13:12:14 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -68,7 +68,7 @@ struct cvs_req cvs_requests[] = {
{ "rlog", 0, NULL, 0 },
{ "add", 0, cvs_server_add, 0 },
{ "remove", 0, cvs_server_remove, 0 },
- { "update-patches", 0, NULL, 0 },
+ { "update-patches", 0, cvs_server_update_patches, 0 },
{ "gzip-file-contents", 0, NULL, 0 },
{ "status", 0, cvs_server_status, 0 },
{ "rdiff", 0, NULL, 0 },
diff --git a/usr.bin/cvs/remote.h b/usr.bin/cvs/remote.h
index 4140f0dfaff..d54308193ab 100644
--- a/usr.bin/cvs/remote.h
+++ b/usr.bin/cvs/remote.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: remote.h,v 1.11 2006/12/15 09:50:37 xsa Exp $ */
+/* $OpenBSD: remote.h,v 1.12 2006/12/15 13:12:14 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -74,6 +74,7 @@ void cvs_server_argumentx(char *);
void cvs_server_set(char *);
void cvs_server_static_directory(char *);
void cvs_server_sticky(char *);
+void cvs_server_update_patches(char *);
void cvs_server_add(char *);
void cvs_server_admin(char *);
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index 2a2d0b5d75d..f8ffcf288e3 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.43 2006/12/15 09:50:37 xsa Exp $ */
+/* $OpenBSD: server.c,v 1.44 2006/12/15 13:12:14 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -448,6 +448,18 @@ cvs_server_argumentx(char *data)
}
void
+cvs_server_update_patches(char *data)
+{
+ /*
+ * This does not actually do anything.
+ * It is used to tell that the server is able to
+ * generate patches when given an `update' request.
+ * The client must issue the -u argument to `update'
+ * to receive patches.
+ */
+}
+
+void
cvs_server_add(char *data)
{
if (chdir(server_currentdir) == -1)