diff --git a/ChangeLog b/ChangeLog index 63818040b..cb4887933 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ + * fix error handling of moving storage to a drive letter that isn't mounted * fix HTTP Host header when using proxy 1.2.1 release diff --git a/src/path.cpp b/src/path.cpp index 47f48159d..938e892fa 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -278,7 +278,14 @@ namespace { if (ec != boost::system::errc::no_such_file_or_directory) return; ec.clear(); - if (is_root_path(f)) return; + if (is_root_path(f)) + { + // this is just to set ec correctly, in case this root path isn't + // mounted + file_status s; + stat_file(f, &s, ec); + return; + } if (has_parent_path(f)) { create_directories(parent_path(f), ec);