Comment 4 for bug 809384

Revision history for this message
In , Chris Coulson (chrisccoulson) wrote :

Created attachment 545732
Don't call realpath when loaded from PATH

This fixes it by not calling realpath() if we are executed from the users PATH. This is determined by the absence of any separators in argv[0]. I did consider also checking that the result is actually an executable file too, but that seemed overkill.