From 2e3748d1e04b442e82ba787fb3ac82a44847bf3a Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Tue, 29 Mar 2016 16:05:47 +0000 Subject: MFH: r411909 gecko: fix an unlikely race with environ(7) Approved by: ports-secteam (feld) --- mail/thunderbird/files/patch-bug1233275 | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 mail/thunderbird/files/patch-bug1233275 (limited to 'mail/thunderbird/files/patch-bug1233275') diff --git a/mail/thunderbird/files/patch-bug1233275 b/mail/thunderbird/files/patch-bug1233275 new file mode 100644 index 000000000000..949558662729 --- /dev/null +++ b/mail/thunderbird/files/patch-bug1233275 @@ -0,0 +1,40 @@ +# Copy environment for IPC using NSPR to avoid race + +diff --git a/ipc/chromium/src/base/process_util_bsd.cc b/ipc/chromium/src/base/process_util_bsd.cc +--- mozilla/ipc/chromium/src/base/process_util_bsd.cc ++++ mozilla/ipc/chromium/src/base/process_util_bsd.cc +@@ -13,6 +13,7 @@ + + #include + ++#include "nspr.h" + #include "base/eintr_wrapper.h" + #include "base/file_util.h" + #include "base/logging.h" +@@ -48,7 +49,6 @@ + + #ifdef HAVE_POSIX_SPAWN + #include +-extern "C" char **environ __dso_public; + #endif + + namespace { +@@ -114,6 +114,7 @@ bool LaunchApp(const std::vector