PR_GetLibraryPath checks the wrong environment variable on many platforms.

NEW
Unassigned

Status

NSPR
NSPR
10 years ago
10 years ago

People

(Reporter: Wan-Teh Chang, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
PR_GetLibraryPath checks the wrong environment variable on
many platforms.

On XP_PC (which includes Windows and OS/2), it checks
LD_LIBRARY_PATH.  The correct environment variable for Windows
is PATH.

On Mac OS X, when USE_MACH_DYLD is defined, it should
check DYLD_LIBRARY_PATH.

On HP-UX, when USE_HPSHL is defined, it should check
SHLIB_PATH.  Right now it is not checking any environment
variable.

On AIX, it should check LIBPATH.

http://mxr.mozilla.org/security/source/security/nss/cmd/shlibsign/sign.sh
shows that we should check ADDON_PATH on some platform.
You need to log in before you can comment on or make changes to this bug.