Bug fix, file backup on Windows has been broken for a long time because it was constructing a path using / and then checking that it matches a normalized absolute path which would have the / converted to \.

This commit is contained in:
Stephen Atherton 2017-10-19 13:33:12 -07:00
parent f6822a4f6b
commit 5718d32553
1 changed files with 1 additions and 3 deletions

View File

@ -3264,9 +3264,7 @@ public:
// To be consistent with directory handling behavior since FDB backup was first released, if the container string
// describes a local directory then "/backup-UID" will be added to it.
if(backupContainer.find("file://") == 0) {
if(backupContainer[backupContainer.size() - 1] != '/')
backupContainer += "/";
backupContainer += std::string("backup-") + nowStr.toString();
backupContainer = joinPath(backupContainer, std::string("backup-") + nowStr.toString());
}
Reference<IBackupContainer> bc = IBackupContainer::openContainer(backupContainer);