source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* cvsweb: We always want read only access to the repositories, so
@ 2019-11-29 14:40 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-11-29 14:40 UTC (permalink / raw)
  To: source

Log Message:
-----------
We always want read only access to the repositories, so CVSREADONLYFS
is not a configuration option.  Unconditionally set it in the script itself.

Modified Files:
--------------
    cvsweb:
        cvsweb.cgi
        cvsweb.conf

Revision Data
-------------
Index: cvsweb.conf
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf,v
retrieving revision 4.18
retrieving revision 4.19
diff -Lcvsweb.conf -Lcvsweb.conf -u -p -r4.18 -r4.19
--- cvsweb.conf
+++ cvsweb.conf
@@ -425,14 +425,12 @@ $allow_tar = 0;
 # can read and write to CVSROOT/history.
 # FreeBSD's and OpenBSD's cvs(1) has long since supported -R (read only access
 # mode) option, which considerably speeds up checkouts over NFS.  For other
-# platforms, the -R option and the CVSREADONLYFS environment variable are
-# available in cvs >= 1.12.1.  A similar effect is provided by -u on NetBSD.
+# platforms, the -R option is available in cvs >= 1.12.1.
+# A similar effect is provided by -u on NetBSD.
 #
 @cvs_options = qw(-f);
 push @cvs_options, '-R' if ($^O eq 'freebsd' || $^O eq 'openbsd');
 push @cvs_options, '-u' if ($^O eq 'netbsd');
-# Only affects cvs >= 1.12.1, but doesn't hurt older ones.
-$ENV{CVSREADONLYFS} = 1 unless exists($ENV{CVSREADONLYFS});
 
 # Options to pass to the 'cvs annotate' command, usually the normal
 # @cvs_options are good enough here.
Index: cvsweb.cgi
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.cgi,v
retrieving revision 4.30
retrieving revision 4.31
diff -Lcvsweb.cgi -Lcvsweb.cgi -u -p -r4.30 -r4.31
--- cvsweb.cgi
+++ cvsweb.cgi
@@ -190,6 +190,10 @@ sub checkout_to_temp($$$);
 # (think mod_perl)...
 delete(@ENV{qw(PATH IFS CDPATH ENV BASH_ENV)});
 
+# Helps to achieve read only access to the repositories
+# with cvs >= 1.12.1 and doesn't hurt other versions.
+$ENV{CVSREADONLYFS} = 1;
+
 # Location of the configuration file inside the web server chroot:
 $config = '/conf/cvsweb/cvsweb.conf';
 
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-29 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-29 14:40 cvsweb: We always want read only access to the repositories, so schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).