Remove path.make_preferred() calls, and fix compiler error in bitcoinrpc RE: boost::system

This commit is contained in:
Gavin Andresen
2012-04-11 14:00:48 -04:00
parent 37e7e72041
commit 2232717cba
3 changed files with 1 additions and 10 deletions

View File

@@ -80,10 +80,8 @@ CDB::CDB(const char* pszFile, const char* pszMode) : pdb(NULL)
return;
string strDataDir = GetDataDir();
filesystem::path pathLogDir(strDataDir + "/database");
pathLogDir.make_preferred();
filesystem::create_directory(pathLogDir);
filesystem::path pathErrorFile(strDataDir + "/db.log");
pathErrorFile.make_preferred();
printf("dbenv.open LogDir=%s ErrorFile=%s\n", pathLogDir.string().c_str(), pathErrorFile.string().c_str());
int nDbCache = GetArg("-dbcache", 25);
@@ -1179,9 +1177,7 @@ bool BackupWallet(const CWallet& wallet, const string& strDest)
// Copy wallet.dat
filesystem::path pathSrc(GetDataDir() + "/" + wallet.strWalletFile);
pathSrc.make_preferred();
filesystem::path pathDest(strDest);
pathDest.make_preferred();
if (filesystem::is_directory(pathDest))
pathDest = pathDest / wallet.strWalletFile;