Don't allow interface that is identical to the root of a wildcard

This commit is contained in:
Tom Eastep 2010-12-19 08:10:41 -08:00
parent 45faba0b7c
commit 8526dafc5d

View File

@ -1197,7 +1197,7 @@ sub known_interface($;$)
for my $i ( @interfaces ) {
$interfaceref = $interfaces{$i};
my $root = $interfaceref->{root};
if ( $i ne $root && substr( $interface, 0, length $root ) eq $root ) {
if ( $i ne $root && $interface ne $root && substr( $interface, 0, length $root ) eq $root ) {
my $physical = map_physical( $interface, $interfaceref );
my $copyref = { options => $interfaceref->{options},