Eliminate Shell syntax error when a provider and its interface have the same name.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-11-16 09:50:36 -08:00
parent a484cb848f
commit 5712438bcb

View File

@ -1262,7 +1262,7 @@ EOF
if ( $providerref->{optional} ) {
if ( $providerref->{shared} || $providerref->{physical} eq $provider) {
emit "$provider})";
emit "$provider)";
} else {
emit( "$providerref->{physical}|$provider)" );
}