Skip to content

Commit

Permalink
fix error handling of moving storage to a drive letter that isn't mou…
Browse files Browse the repository at this point in the history
…nted
  • Loading branch information
arvidn committed Jul 1, 2019
1 parent 10d061e commit 6fbeb93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 8 additions & 1 deletion src/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6fbeb93

Please sign in to comment.