mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 19:51:40 +02:00
Avoid shell error when detecting owner name match
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cc5a59231b
commit
fc754040d5
@ -3739,6 +3739,7 @@ sub Owner_Match() {
|
|||||||
|
|
||||||
sub Owner_Name_Match() {
|
sub Owner_Name_Match() {
|
||||||
if ( my $name = `id -un 2> /dev/null` ) {
|
if ( my $name = `id -un 2> /dev/null` ) {
|
||||||
|
chomp $name;
|
||||||
qt1( "$iptables -A $sillyname -m owner --uid-owner $name -j ACCEPT" );
|
qt1( "$iptables -A $sillyname -m owner --uid-owner $name -j ACCEPT" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user