aboutsummaryrefslogtreecommitdiff
path: root/db.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-12-13 02:13:43 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-12-13 02:13:43 +0000
commitbd336ba27283106a5ae6b77f8a77561c644f114c (patch)
treeb1c3954a7c031af70cf7b1fa778f5d986e34d94c /db.cpp
parent25b12b8839be4fc5a051656aad82870c083cce4d (diff)
restrict file permissions on linux to the user only
Diffstat (limited to 'db.cpp')
-rw-r--r--db.cpp2
1 files changed, 1 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;