summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-07-28 13:41:39 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-07-28 13:41:39 +0000
commitf1ceb2cb08e62c1db08689108f22d4e1fb75d702 (patch)
tree4be4cc85497e50575a0496b54a602b080b123be0 /usr.bin/cvs
parentae36237c64121791894fbc24be3ea9cc93a1c603 (diff)
respect CVSREAD env. variable; ok jfb@.
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/cvs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c
index 11e78dbe6ba..a5b831e263c 100644
--- a/usr.bin/cvs/cvs.c
+++ b/usr.bin/cvs/cvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.c,v 1.75 2005/07/25 12:05:43 xsa Exp $ */
+/* $OpenBSD: cvs.c,v 1.76 2005/07/28 13:41:38 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -121,6 +121,9 @@ main(int argc, char **argv)
((envstr = getenv("EDITOR")) != NULL))
cvs_editor = envstr;
+ if ((envstr = getenv("CVSREAD")) != NULL)
+ cvs_readonly = 1;
+
ret = cvs_getopt(argc, argv);
argc -= ret;