mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-04 04:29:43 +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';
|
default 'MODULE_PREFIX', 'o gz ko o.gz ko.gz';
|
||||||
|
|
||||||
my $uid = `id -u`;
|
if ( ! $export && $> == 0 ) { # $> == $EUID
|
||||||
|
|
||||||
fatal_error "Command 'id -u' failed" unless $? == 0;
|
|
||||||
|
|
||||||
chomp $uid;
|
|
||||||
|
|
||||||
if ( ! $export && $uid == 0 ) {
|
|
||||||
unless ( $config{IPTABLES} ) {
|
unless ( $config{IPTABLES} ) {
|
||||||
$config{IPTABLES} = mywhich 'iptables';
|
$config{IPTABLES} = mywhich 'iptables';
|
||||||
fatal_error "Can't find iptables executable" unless $config{IPTABLES};
|
fatal_error "Can't find iptables executable" unless $config{IPTABLES};
|
||||||
|
Loading…
Reference in New Issue
Block a user