Open Bug 469504 Opened 16 years ago Updated 2 years ago

PR_GetLibraryPath checks the wrong environment variable on many platforms.

Categories

(NSPR :: NSPR, defect)

defect

Tracking

(Not tracked)

People

(Reporter: wtc, Unassigned)

Details

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.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.