From d22e25ab49dbe59c06b33d296498bd09cbe3935c Mon Sep 17 00:00:00 2001 From: Marco Edoardo Santimaria Date: Mon, 17 Mar 2025 18:10:23 +0100 Subject: [PATCH] Hotfix: metadata other than capio_dir folder Fixed a missing initialization of metadata_path to provided metadata directory when providing the env variable CAPIO_METADATA_DIR. --- src/common/capio/env.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/capio/env.hpp b/src/common/capio/env.hpp index f02aefa37..ebc49bf99 100644 --- a/src/common/capio/env.hpp +++ b/src/common/capio/env.hpp @@ -54,6 +54,8 @@ inline const std::filesystem::path &get_capio_metadata_path() { if (val == nullptr) { metadata_path = get_capio_dir() / ".capio_metadata"; + } else { + metadata_path = std::filesystem::path(val) / ".capio_metadata"; } if (!std::filesystem::exists(metadata_path)) {