Fix module name parsing (e.g. cvsweb.cgi/sys_netinet works again)

This commit is contained in:
Bill Fenner 1997-11-19 19:20:22 +00:00
parent 4d77a0857c
commit 816413359b
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=2185
2 changed files with 2 additions and 4 deletions

View file

@ -228,8 +228,7 @@ print("going to dolog($fullname)\n") if ($verbose);
# Display a form offering diffs between said tags
} else {
# Assume it's a module name with a potential path following it.
($module = $where) =~ s|/.*||;
$xtra = $&;
$xtra = $& if (($module = $where) =~ s|/.*||);
# Is there an indexed version of modules?
if (open(MODULES, "$cvsroot/CVSROOT/modules")) {
while (<MODULES>) {

View file

@ -228,8 +228,7 @@ print("going to dolog($fullname)\n") if ($verbose);
# Display a form offering diffs between said tags
} else {
# Assume it's a module name with a potential path following it.
($module = $where) =~ s|/.*||;
$xtra = $&;
$xtra = $& if (($module = $where) =~ s|/.*||);
# Is there an indexed version of modules?
if (open(MODULES, "$cvsroot/CVSROOT/modules")) {
while (<MODULES>) {