From 0291ee4737cecb81f7efa374020fa016531cb61b Mon Sep 17 00:00:00 2001 From: heck Date: Fri, 8 Oct 2021 19:14:25 +0200 Subject: [PATCH] FIX: fs-mutex - make resilient against cwd changes. --- src/fs_mutex.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/fs_mutex.cc b/src/fs_mutex.cc index cd79f01..1e4bb2a 100644 --- a/src/fs_mutex.cc +++ b/src/fs_mutex.cc @@ -1,11 +1,11 @@ #include "fs_mutex.hh" #include -#include +#include namespace pEp { namespace PityTest11 { - fs_mutex::fs_mutex(std::string mutexpath) : mutexpath{ mutexpath } {} + fs_mutex::fs_mutex(std::string mutexpath) : mutexpath{ Utils::path_get_abs(mutexpath) } {} void fs_mutex::aquire() const { @@ -36,6 +36,5 @@ namespace pEp { } } - } // namespace PityTest + } // namespace PityTest11 } // namespace pEp -