From 021df9b9324e2624fa815173764ff5d164f66e33 Mon Sep 17 00:00:00 2001 From: jackun Date: Sun, 7 Aug 2022 15:40:25 +0300 Subject: [PATCH] `env -u` doesn't affect "piped" commands, use `unset` instead --- src/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging.cpp b/src/logging.cpp index 5b02a563..a348dddb 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -19,7 +19,7 @@ std::unique_ptr logger; string exec(string command) { #ifndef _WIN32 - command = "env -u LD_PRELOAD " + command; + command = "unset LD_PRELOAD; " + command; #endif std::array buffer; std::string result;