Avoid shell error when detecting owner name match

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-06-24 09:51:32 -07:00
parent cc5a59231b
commit fc754040d5

View File

@ -3739,6 +3739,7 @@ sub Owner_Match() {
sub Owner_Name_Match() {
if ( my $name = `id -un 2> /dev/null` ) {
chomp $name;
qt1( "$iptables -A $sillyname -m owner --uid-owner $name -j ACCEPT" );
}
}