From 0c48f5fe2f966c78b0ed0aa2bb9f63c539034956 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Mon, 26 Mar 2018 13:13:17 +0000 Subject: [PATCH] Make sure to return const char* paths for mtar --- include/storage/tar.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/storage/tar.hpp b/include/storage/tar.hpp index 265cbf0d5..548050e3b 100644 --- a/include/storage/tar.hpp +++ b/include/storage/tar.hpp @@ -85,7 +85,7 @@ class FileReader FileReader(const boost::filesystem::path &path, FingerprintFlag flag) : path(path) { - auto ret = mtar_open(&handle, path.c_str(), "r"); + auto ret = mtar_open(&handle, path.string().c_str(), "r"); detail::checkMTarError(ret, path, ""); if (flag == VerifyFingerprint) @@ -224,7 +224,7 @@ class FileWriter FileWriter(const boost::filesystem::path &path, FingerprintFlag flag) : path(path) { - auto ret = mtar_open(&handle, path.c_str(), "w"); + auto ret = mtar_open(&handle, path.string().c_str(), "w"); detail::checkMTarError(ret, path, ""); if (flag == GenerateFingerprint)