[Lxr-general] [PATCH] Fix Common::fixpath()
Brought to you by:
ajlittoz
|
From: Jan-Benedict G. <jb...@lu...> - 2006-03-26 20:34:33
|
Hi!
This patch fixes Common::fixpath() by addind $release as an argument
to Files::isdir().
MfG, JBG
2006-03-26 Jan-Benedict Glaw <jb...@lu...>
Maximilian Wilhelm <ma...@rf...>
* lib/LXR/Common.pm (fixpaths): Add $release to the Files::isdir
call. Something that's a file in one release may be a directory
in another...
--- a/lib/LXR/Common.pm 2 Nov 2005 23:39:55 -0000 1.54
+++ b/lib/LXR/Common.pm 26 Mar 2006 20:25:33 -0000
@@ -376,7 +376,7 @@ sub fixpaths {
while ($node =3D~ s|/[^/]+/\.\./|/|g) { }
$node =3D~ s|/\.\./|/|g;
=20
- $node .=3D '/' if $files->isdir($node);
+ $node .=3D '/' if $files->isdir($node, $release);
$node =3D~ s|//+|/|g;
=20
return $node;
--=20
Jan-Benedict Glaw jb...@lu... . +49-172-7608481 =
_ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg =
_ _ O
f=C3=BCr einen Freien Staat voll Freier B=C3=BCrger" | im Internet! | i=
m Irak! O O O
ret =3D do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)=
);
|