diff options
author | Alexander Regueiro <alexreg@me.com> | 2016-04-09 14:30:07 +0100 |
---|---|---|
committer | Alexander Regueiro <alexreg@me.com> | 2016-04-13 00:11:47 +0100 |
commit | 41dbc4849e0bf14eef98962b0f0bddcde0bb3014 (patch) | |
tree | 740d355cf252608262b19c48af3f95ad26c55c6b /src/util.cpp | |
parent | 065c6b443f3e9864b1b4231208b49e3cef99cef3 (diff) |
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.
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp index 59f58f2c55..00b75fbdbe 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -471,9 +471,7 @@ boost::filesystem::path GetDefaultDataDir() pathRet = fs::path(pszHome); #ifdef MAC_OSX // Mac - pathRet /= "Library/Application Support"; - TryCreateDirectory(pathRet); - return pathRet / "Bitcoin"; + return pathRet / "Library/Application Support/Bitcoin"; #else // Unix return pathRet / ".bitcoin"; |