exec: make sure LD_PRELOAD is unset
@@ -16,6 +16,8 @@ logData currentLogData = {};
std::unique_ptr<Logger> logger;
string exec(string command) {
+ if (getenv("LD_PRELOAD"))
+ unsetenv("LD_PRELOAD");
std::array<char, 128> buffer;
std::string result;
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(command.c_str(), "r"), pclose);
