Allow relative path with use_path

Fixes #1161.
This commit is contained in:
Andrew Gaul 2020-10-10 18:13:23 +09:00
parent cf86fa51b0
commit 910255745e

View File

@ -206,7 +206,7 @@ int mkdirp(const std::string& path, mode_t mode)
std::string component;
std::istringstream ss(path);
while (getline(ss, component, '/')) {
base += "/" + component;
base += component + "/";
struct stat st;
if(0 == stat(base.c_str(), &st)){