# HG changeset patch # User Sebastien Jodogne # Date 1368010299 -7200 # Node ID 9d2e1009076abc530074d12e43bec9832db38521 # Parent 53d79c963e4ab39b613996183e8b5d0e405e93b0 fix for fedora 18 diff -r 53d79c963e4a -r 9d2e1009076a OrthancServer/OrthancInitialization.cpp --- a/OrthancServer/OrthancInitialization.cpp Wed May 08 12:16:18 2013 +0200 +++ b/OrthancServer/OrthancInitialization.cpp Wed May 08 12:51:39 2013 +0200 @@ -283,7 +283,17 @@ std::string InterpretStringParameterAsPath(const std::string& parameter) { boost::mutex::scoped_lock lock(globalMutex_); - return (defaultDirectory_ / parameter).string(); + + boost::filesystem::path p(parameter); + + if (p.is_absolute()) + { + return p.string(); + } + else + { + return (defaultDirectory_ / parameter).string(); + } }