=================================================================== RCS file: /cvs/cvsweb/cvsweb.cgi,v retrieving revision 4.30 retrieving revision 4.31 diff -u -p -r4.30 -r4.31 --- cvsweb/cvsweb.cgi 2019/11/29 14:29:48 4.30 +++ cvsweb/cvsweb.cgi 2019/11/29 14:40:27 4.31 @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: cvsweb.cgi,v 4.30 2019/11/29 14:29:48 schwarze Exp $ +# $Id: cvsweb.cgi,v 4.31 2019/11/29 14:40:27 schwarze Exp $ # $knu: cvsweb.cgi,v 1.299 2010/11/13 16:37:18 simon # # cvsweb - a CGI interface to CVS trees. @@ -189,6 +189,10 @@ sub checkout_to_temp($$$); # Get rid of unsafe environment vars. Don't do this in the BEGIN block # (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';