From c16b84b5784865bdb37bbb4b26dc22cec588ffd8 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 22 Dec 2018 13:04:36 +0800 Subject: Minicargo - Fix #98 by moving chdir into `spawn_process` (and protect it with a lock) --- tools/common/path.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/common/path.h') diff --git a/tools/common/path.h b/tools/common/path.h index eae4951f..1ad6f506 100644 --- a/tools/common/path.h +++ b/tools/common/path.h @@ -38,6 +38,13 @@ public: return m_str != ""; } + bool operator==(const path& p) const { + return m_str == p.m_str; + } + bool operator!=(const path& p) const { + return m_str != p.m_str; + } + path& operator/=(const path& p) { if(!p.is_valid()) -- cgit v1.2.3