Skip to content

Commit

Permalink
env -u doesn't affect "piped" commands, use unset instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jackun committed Aug 7, 2022
1 parent a05dd84 commit 021df9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 021df9b

Please sign in to comment.