diff options
Diffstat (limited to 'vtysh/extract.pl.in')
-rwxr-xr-x | vtysh/extract.pl.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/extract.pl.in b/vtysh/extract.pl.in index 6882b10b..ae83a2e8 100755 --- a/vtysh/extract.pl.in +++ b/vtysh/extract.pl.in @@ -117,7 +117,7 @@ foreach (@ARGV) { } } } else { - ($protocol) = ($file =~ /\/([a-z0-9]+)/); + ($protocol) = ($file =~ /^.*\/([a-z0-9]+)\/[a-zA-Z0-9_\-]+\.c$/); $protocol = "VTYSH_" . uc $protocol; } |