mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1337304. r=snorp
--HG-- extra : rebase_source : 7306160ece787ed98fb98ec1bcecbb0466d98093
This commit is contained in:
parent
5b5e83bd5c
commit
21dfb2d432
@ -216,13 +216,6 @@ public final class GeckoLoader {
|
||||
}
|
||||
|
||||
putenv("MOZ_LINKER_EXTRACT=1");
|
||||
// Ensure that the cache dir is world-writable
|
||||
File cacheDir = new File(linkerCache);
|
||||
if (cacheDir.isDirectory()) {
|
||||
cacheDir.setWritable(true, false);
|
||||
cacheDir.setExecutable(true, false);
|
||||
cacheDir.setReadable(true, false);
|
||||
}
|
||||
}
|
||||
|
||||
@RobocopTarget
|
||||
|
@ -149,6 +149,10 @@ MappableExtractFile::Create(const char *name, Zip *zip, Zip::Stream *stream)
|
||||
"not extracting");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Ensure that the cache dir is private.
|
||||
chmod(cachePath, 0770);
|
||||
|
||||
UniquePtr<char[]> path =
|
||||
MakeUnique<char[]>(strlen(cachePath) + strlen(name) + 2);
|
||||
sprintf(path.get(), "%s/%s", cachePath, name);
|
||||
|
Loading…
Reference in New Issue
Block a user