$NetBSD: patch-aa,v 1.10 2010/11/09 07:14:48 adam Exp $ --- wwwroot/cgi-bin/awstats.pl.orig 2010-08-18 10:47:10.000000000 +0000 +++ wwwroot/cgi-bin/awstats.pl @@ -1717,7 +1717,7 @@ sub Read_Config { "/etc/opt/awstats" ); - if ($configdir) { + if ($configdir && $ENV{"AWSTATS_ENABLE_CONFIG_DIR"}) { # Check if configdir is outside default values. my $outsidedefaultvalue=1; foreach (@PossibleConfigDir) {