summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-11-14 14:45:32 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-11-14 14:45:32 +0000
commit70130744e786be53f66347820c3db21c55728c04 (patch)
tree3feb46bfba187208f0dd9a22eb0794aafde8cd83 /usr.bin/cvs
parent581f79d4edfea1b77d0e4effc29b0c3ba71dfd5e (diff)
Handle global -l, -Q, and -r on the server side too.
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/server.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index c7dababc9cc..3f31d88d776 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.37 2006/11/14 09:59:54 xsa Exp $ */
+/* $OpenBSD: server.c,v 1.38 2006/11/14 14:45:31 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -219,12 +219,21 @@ cvs_server_validreq(char *data)
void
cvs_server_globalopt(char *data)
{
- if (!strcmp(data, "-t"))
- cvs_trace = 1;
+ if (!strcmp(data, "-l"))
+ cvs_nolog = 1;
if (!strcmp(data, "-n"))
cvs_noexec = 1;
+ if (!strcmp(data, "-Q"))
+ verbosity = 0;
+
+ if (!strcmp(data, "-r"))
+ cvs_readonly = 1;
+
+ if (!strcmp(data, "-t"))
+ cvs_trace = 1;
+
if (!strcmp(data, "-V"))
verbosity = 2;
}