Adding late-replace envvar filenames to ATT

Change-Id: I5df51934ffa25358503013e1a230adb894d6ff94
此提交包含在:
Giovanni LB
2024-02-16 14:19:22 -03:00
提交者 Giovanni Baraldi
父節點 a1999fa366
當前提交 fe00badc6e
共有 3 個檔案被更改,包括 43 行新增6 行删除
+5 -2
查看文件
@@ -482,12 +482,15 @@ void plugins_load(void* userdata) {
else
plugin_name = "libcli_plugin.so";
}
env_var_replace("OUTPUT_PATH");
bool bIsATT = std::string_view(plugin_name) == "libatt_plugin.so";
if (!bIsATT)
env_var_replace("OUTPUT_PATH");
env_var_replace("OUT_FILE_NAME");
std::string out_path = getenv("OUTPUT_PATH") ? getenv("OUTPUT_PATH") : "";
if (out_path.size()) {
if (out_path.size() && !bIsATT) {
try {
std::experimental::filesystem::create_directories(out_path);
} catch (...) {