aboutsummaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
Diffstat (limited to 'src/support')
-rw-r--r--src/support/filesystem_context.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/support/filesystem_context.cc b/src/support/filesystem_context.cc
index a30bccc..eba7e45 100644
--- a/src/support/filesystem_context.cc
+++ b/src/support/filesystem_context.cc
@@ -20,7 +20,13 @@ FilesystemContext::FilesystemContext(const std::string& path):
boost::filesystem::path FilesystemContext::resolve(
const std::string& path) const {
- return absolute(this->path_ / path);
+ const boost::filesystem::path targetPath(path);
+
+ if ( targetPath.is_absolute() ) {
+ return targetPath;
+ } else {
+ return absolute(this->path_ / targetPath);
+ }
}
boost::filesystem::path FilesystemContext::resolve(