git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5800 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-01 22:04:35 +00:00
parent 7b3af346e8
commit 0685ec53cc

View File

@ -676,13 +676,7 @@ sub get_configuration( $ ) {
default 'MODULE_PREFIX', 'o gz ko o.gz ko.gz';
my $uid = `id -u`;
fatal_error "Command 'id -u' failed" unless $? == 0;
chomp $uid;
if ( ! $export && $uid == 0 ) {
if ( ! $export && $> == 0 ) { # $> == $EUID
unless ( $config{IPTABLES} ) {
$config{IPTABLES} = mywhich 'iptables';
fatal_error "Can't find iptables executable" unless $config{IPTABLES};