diff --git a/datastore.cpp b/datastore.cpp index 74a7bcd0bcd..819820a3b49 100644 --- a/datastore.cpp +++ b/datastore.cpp @@ -124,7 +124,8 @@ int main( const int argc, const char * argv[] ) { paths_iterator = server_paths.find("fileindex"); BOOST_ASSERT(server_paths.end() != paths_iterator); BOOST_ASSERT(!paths_iterator->second.empty()); - const std::string & file_index_file_name = paths_iterator->second.string(); + const boost::filesystem::path index_file_path_absolute = boost::filesystem::absolute(paths_iterator->second); + const std::string & file_index_file_name = index_file_path_absolute.string(); paths_iterator = server_paths.find("nodesdata"); BOOST_ASSERT(server_paths.end() != paths_iterator); BOOST_ASSERT(!paths_iterator->second.empty());