1
1

Add memory hooks override for Gentoo sandbox v2.5, too. Thanks to

Justin Bronder for the patch.

This commit was SVN r28702.
Этот коммит содержится в:
Jeff Squyres 2013-07-02 12:34:51 +00:00
родитель fe012cdc2b
Коммит fea15ec34e

@ -748,9 +748,14 @@ void opal_memory_linux_malloc_init_hook(void)
"fakeroot" build environment that allocates memory during
stat() (see http://bugs.debian.org/531522). It may not be
necessary any more since we're using access(), not stat(). But
we'll leave the check, anyway. */
we'll leave the check, anyway.
This is also an issue when using Gentoo's version of
'fakeroot', sandbox v2.5. Sandbox environments can also be
detected fairly easily by looking for SANDBOX_PID. */
if (getenv("FAKEROOTKEY") != NULL ||
getenv("FAKED_MODE") != NULL) {
getenv("FAKED_MODE") != NULL ||
getenv("SANDBOX_PID") != NULL ) {
return;
}