summaryrefslogtreecommitdiff
path: root/external/gpgmepp/asan.patch
blob: e0b1c85fe51b294d1bf558ab055d22fe7e6f2515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- src/posix-io.c
+++ src/posix-io.c
@@ -563,6 +563,9 @@
 
 	  if (atfork)
 	    atfork (atforkvalue, 0);
+          char const * ld_path = getenv("LIBO_LD_PATH");
+          if (ld_path && setenv("LD_LIBRARY_PATH", ld_path, 1) != 0)
+            abort();
 
           /* First close all fds which will not be inherited.  If we
            * have closefrom(2) we first figure out the highest fd we