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.
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.