SOURCES: cvsweb-config.patch - use $CVSWEB_CONFIG if present for c...
glen
glen at pld-linux.org
Sat Oct 6 14:32:14 CEST 2007
Author: glen Date: Sat Oct 6 12:32:14 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use $CVSWEB_CONFIG if present for cvsweb.conf
---- Files affected:
SOURCES:
cvsweb-config.patch (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SOURCES/cvsweb-config.patch
diff -u SOURCES/cvsweb-config.patch:1.7 SOURCES/cvsweb-config.patch:1.8
--- SOURCES/cvsweb-config.patch:1.7 Thu Jan 12 10:26:24 2006
+++ SOURCES/cvsweb-config.patch Sat Oct 6 14:32:09 2007
@@ -1,16 +1,15 @@
-diff -Nur cvsweb-3.0.1/cvsweb.cgi cvsweb-3.0.1.new/cvsweb.cgi
---- cvsweb-3.0.1/cvsweb.cgi 2004-05-08 16:13:40.000000000 +0200
-+++ cvsweb-3.0.1.new/cvsweb.cgi 2004-08-19 14:06:58.000000000 +0200
-@@ -214,7 +214,7 @@
+--- cvsweb-3.0.1.new/cvsweb.cgi 2004-08-19 14:06:58.000000000 +0200
++++ cvsweb-3.0.6/cvsweb.cgi 2007-10-06 15:27:43.849021395 +0300
+@@ -214,7 +214,8 @@
# == EDIT this ==
# Locations to search for user configuration, in order:
-for (catfile($mydir, 'cvsweb.conf'), '/usr/local/etc/cvsweb/cvsweb.conf') {
-+for (catfile($mydir, 'cvsweb.conf'), '/etc/webapps/cvsweb/cvsweb.conf') {
++my ($CVSWEB_CONFIG) = $1 if $ENV{CVSWEB_CONFIG} =~ /(.*)/; # untaint
++for ($CVSWEB_CONFIG, catfile($mydir, 'cvsweb.conf'), '/etc/webapps/cvsweb/cvsweb.conf') {
if (-r $_) {
$config = $_;
last;
-diff -Nur cvsweb-3.0.1/cvsweb.conf cvsweb-3.0.1.new/cvsweb.conf
--- cvsweb-3.0.1/cvsweb.conf 2004-05-05 01:40:50.000000000 +0200
+++ cvsweb-3.0.1.new/cvsweb.conf 2004-08-19 14:08:34.000000000 +0200
@@ -19,7 +19,7 @@
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/cvsweb-config.patch?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list