summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-03-27 20:39:17 +0000
committerChris Wilson <chris+github@qwirx.com>2011-03-27 20:39:17 +0000
commit3fe5e1ec1e245cb29119b6ea40603431e22c1dd6 (patch)
treecb8fc4c07dd7ee7dc8e0bad3410ed11d6005a24e /lib
parentddc8d5c1dd30535951c9435d7a997b251e334aa4 (diff)
Fix double path separator in account info filename, prevents its deletion
on MSVC 2010/emu.cpp:unlink(). A cursory check shows that the separator is always included by MakeAccountRootDir() and this is always used to make the info filename, so this should not break anything.
Diffstat (limited to 'lib')
-rw-r--r--lib/backupstore/BackupStoreInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backupstore/BackupStoreInfo.cpp b/lib/backupstore/BackupStoreInfo.cpp
index f0448cf8..99c2aa5b 100644
--- a/lib/backupstore/BackupStoreInfo.cpp
+++ b/lib/backupstore/BackupStoreInfo.cpp
@@ -144,7 +144,7 @@ void BackupStoreInfo::CreateNew(int32_t AccountID, const std::string &rRootDir,
std::auto_ptr<BackupStoreInfo> BackupStoreInfo::Load(int32_t AccountID, const std::string &rRootDir, int DiscSet, bool ReadOnly, int64_t *pRevisionID)
{
// Generate the filename
- std::string fn(rRootDir + DIRECTORY_SEPARATOR INFO_FILENAME);
+ std::string fn(rRootDir + INFO_FILENAME);
// Open the file for reading (passing on optional request for revision ID)
std::auto_ptr<RaidFileRead> rf(RaidFileRead::Open(DiscSet, fn, pRevisionID));