Share

LXR Cross Referencer

Tracker: Patches

5 4 small patches (2 bugfixes, 1 improvement, 1 doc) - ID: 2800674
Last Update: Comment added ( chjaeg )

Here are four patches from the changes I've done to my local LXR
installation, on top of current CVS.


Christian Jaeger ( chjaeg ) - 2009-06-03 19:06

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2009-06-03 20:55
Sender: chjaeg

> 0002 - we'd need some explanation why this is a good idea since it
completely reverts the fix for bug 2745292 LXR CGI Scripts Fail on Windows
and hence puts that bug back in the code

Well if #!perl really works on Windows, then I guess something more
involved will have to be done. This here is just to make it work on unix.

> 0003 - I don't understand what this is protecting lxr from. More
explanation needed.

Ehr, join builds a single string from all arguments. Which is passed to a
shell. So $path could do pretty much anything it wants from the shell.

And it could simply be a space in a path and it would break. Right?

> 0004 - looks like a unnecessary comment.

It is the result of me trying to understand the code. You simply set
$debug etc. in the same file, without any hint as to what that does, and
only after 10 or 15 minutes I found out that it *sets imported variables*,
which I've never seen elsewhere I think. Importing those variables
explicitely or adding a comment will help people understand it as they grep
upwards to find the declaration of those variables.

So I'd say it's definitely not unnecessary. Explicit import would be the
alternative, but I didn't go that way so as to not make changes to the code
that existing coders would have to get used to.



Date: 2009-06-03 19:43
Sender: adrianissott

Having just taken a look at these patches here are my thoughts:
0001 - looks good
0002 - we'd need some explanation why this is a good idea since it
completely reverts the fix for bug 2745292 LXR CGI Scripts Fail on Windows
and hence puts that bug back in the code
0003 - I don't understand what this is protecting lxr from. More
explanation needed.
0004 - looks like a unnecessary comment.


Log in to comment.

Attached Files ( 4 )

Filename Description Download
0001-much-improve-error-message.patch Download
0002-Revert-Fix-for-bug-2745292-LXR-CGI-Scripts-Fail-on.patch Download
0003-bug-security-fix-quote-path.patch Download
0004--comment-regarding-config-files-index-and-more.patch Download

Changes ( 4 )

Field Old Value Date By
File Added 329560: 0004--comment-regarding-config-files-index-and-more.patch 2009-06-03 19:07 chjaeg
File Added 329559: 0003-bug-security-fix-quote-path.patch 2009-06-03 19:07 chjaeg
File Added 329558: 0002-Revert-Fix-for-bug-2745292-LXR-CGI-Scripts-Fail-on.patch 2009-06-03 19:06 chjaeg
File Added 329557: 0001-much-improve-error-message.patch 2009-06-03 19:06 chjaeg