Browse Source

Removed call to `TryCreateDirectory` from `GetDefaultDataDir` in `src/util.cpp`.

See https://github.com/bitcoin/bitcoin/issues/7845#issuecomment-207684728.
Also refactored `GetDefaultDataDir` function to return path for Mac in one expression.
0.13
Alexander Regueiro 9 years ago
parent
commit
41dbc4849e
  1. 4
      src/util.cpp

4
src/util.cpp

@ -471,9 +471,7 @@ boost::filesystem::path GetDefaultDataDir()
pathRet = fs::path(pszHome); pathRet = fs::path(pszHome);
#ifdef MAC_OSX #ifdef MAC_OSX
// Mac // Mac
pathRet /= "Library/Application Support"; return pathRet / "Library/Application Support/Bitcoin";
TryCreateDirectory(pathRet);
return pathRet / "Bitcoin";
#else #else
// Unix // Unix
return pathRet / ".bitcoin"; return pathRet / ".bitcoin";

Loading…
Cancel
Save