Share

LXR Cross Referencer

Tracker: Bugs

5 source does not enter 2-letters dirs - ID: 1322202
Last Update: Comment added ( darellik )

(LXR 0.9.4)

The source script refuses to enter a 2 letters dir
(such as 'fs' or 'mm' in linux kernel source tree).

The problem comes from a misuse of the dot in the
regexp used to filter out the .. (parent) dir.

Fixup : apply following patch (do not forget to apply
to the perl-mods
installed in the /usr/.../site_lisp perl directory if
you followd install directives)

--- LXR/Common.pm 2005-10-07 15:21:11.000000000 +0200
+++ LXR/Common.pm~ 2005-10-05 17:55:19.000000000 +0200
@@ -541,7 +541,7 @@
# First suppress anything after a dodgy
character
$path =~ s!(^[\w_+-,.%^/]+).*!$1!;
# Clean out /../
- while ($path =~ m!/\.\./!) {
+ while ($path =~ m!/../!) {
$path = s!/\.\./!/!g;
}
}


Nobody/Anonymous ( nobody ) - 2005-10-10 09:04

5

Closed

Duplicate

Nobody/Anonymous

Browsing

None

Public


Comments ( 2 )




Date: 2005-12-01 14:46
Sender: darellikAccepting Donations

Logged In: YES
user_id=119409

I just came upon this problem and this patch is backwards.
It should read:

--- LXR/Common.pm 2005-10-07 15:21:11.000000000 +0200
+++ LXR/Common.pm 2005-10-05 17:55:19.000000000 +0200
@@ -541,7 +541,7 @@
# First suppress anything after a dodgy
character
$path =~ s!(^[\w_+-,.%^/]+).*!$1!;
# Clean out /../
- while ($path =~ m!/../!) {
+ while ($path =~ m!/\.\./!) {
$path = s!/\.\./!/!g;
}
}


Date: 2005-10-31 22:57
Sender: mboxProject Admin

Logged In: YES
user_id=215386

This has now been fixed in CVS.

If you can install the new version and check that it solves your
problem, then it would be very useful.

Thanks for reporting this defect and helping to make LXR better.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
resolution_id None 2005-10-31 22:57 mbox
close_date - 2005-10-31 22:57 mbox
status_id Open 2005-10-31 22:57 mbox