Fix CONFDIR handling -- Take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6233 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-04 15:41:27 +00:00
parent 1b2428768e
commit 55f48d634c

View File

@ -752,7 +752,7 @@ sub ensure_config_path( $ ) {
my $f = "$globals{SHAREDIR}/configpath";
$globals{CONFDIR} = '/usr/share/shorewall/configfiles/' if $export;
$globals{CONFDIR} = '/usr/share/shorewall/configfiles/' if $export || $> != 0;
unless ( $config{CONFIG_PATH} ) {
fatal_error "$f does not exist" unless -f $f;