aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db.cpp2
-rw-r--r--ui.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/db.cpp b/db.cpp
index b21d1e3a21..c33f71ef79 100644
--- a/db.cpp
+++ b/db.cpp
@@ -79,7 +79,7 @@ CDB::CDB(const char* pszFile, const char* pszMode) : pdb(NULL)
DB_THREAD |
DB_PRIVATE |
DB_RECOVER,
- 0);
+ S_IRUSR | S_IWUSR);
if (ret > 0)
throw runtime_error(strprintf("CDB() : error %d opening database environment\n", ret));
fDbEnvInit = true;
diff --git a/ui.cpp b/ui.cpp
index 7432302854..6d65720d76 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -3494,6 +3494,7 @@ bool CMyApp::OnInit2()
SetAppName("Bitcoin");
#else
SetAppName("bitcoin");
+ umask(077);
#endif
//