mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-29 17:48:53 +01:00
Use $>
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5800 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
7b3af346e8
commit
0685ec53cc
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user