Bug 1108709 - Don't chdir on Android r=glandium

This commit is contained in:
James Willcox 2015-02-02 16:54:46 -06:00
parent 2f3c21318a
commit bdedcc0b2a

View File

@ -209,8 +209,6 @@ report_mapping(char *name, void *base, uint32_t len, uint32_t offset)
static mozglueresult
loadGeckoLibs(const char *apkName)
{
chdir(getenv("GRE_HOME"));
uint64_t t0 = TimeStamp_Now();
struct rusage usage1_thread, usage1;
getrusage(RUSAGE_THREAD, &usage1_thread);
@ -268,8 +266,6 @@ loadSQLiteLibs(const char *apkName)
if (loadNSSLibs(apkName) != SUCCESS)
return FAILURE;
#else
chdir(getenv("GRE_HOME"));
if (!lib_mapping) {
lib_mapping = (struct mapping_info *)calloc(MAX_MAPPING_INFO, sizeof(*lib_mapping));
}
@ -295,8 +291,6 @@ loadNSSLibs(const char *apkName)
if (nss_handle && nspr_handle && plc_handle)
return SUCCESS;
chdir(getenv("GRE_HOME"));
if (!lib_mapping) {
lib_mapping = (struct mapping_info *)calloc(MAX_MAPPING_INFO, sizeof(*lib_mapping));
}