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:
parent
f6822a4f6b
commit
5718d32553
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue