summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2006-11-14 14:45:31 +0000
committerxsa <xsa@openbsd.org>2006-11-14 14:45:31 +0000
commita7be67ccb90fa465140e44d89feba33549a2cd90 (patch)
treeff16ef4c627be35cd2c42ba272154111425b0fbe
parentAdjust ktrace(2) man page to recent changes in struct ktr_header. (diff)
downloadwireguard-openbsd-a7be67ccb90fa465140e44d89feba33549a2cd90.tar.xz
wireguard-openbsd-a7be67ccb90fa465140e44d89feba33549a2cd90.zip
Handle global -l, -Q, and -r on the server side too.
-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;
}