`env -u` doesn't affect "piped" commands, use `unset` instead

pull/825/head
jackun 2 years ago
parent a05dd84bf5
commit 021df9b932
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -19,7 +19,7 @@ std::unique_ptr<Logger> logger;
string exec(string command) {
#ifndef _WIN32
command = "env -u LD_PRELOAD " + command;
command = "unset LD_PRELOAD; " + command;
#endif
std::array<char, 128> buffer;
std::string result;

Loading…
Cancel
Save