diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-12-13 02:13:43 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-12-13 02:13:43 +0000 |
commit | e899779450bcd940dcdb0108d27c35eae92cc1e1 (patch) | |
tree | b1c3954a7c031af70cf7b1fa778f5d986e34d94c | |
parent | e39bc50eb4dd4f0a34ee4c264af83043f13543dd (diff) |
restrict file permissions on linux to the user only
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@47 1a98c847-1fd6-4fd8-948a-caf3550aa51b
-rw-r--r-- | db.cpp | 2 | ||||
-rw-r--r-- | ui.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -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;
@@ -3494,6 +3494,7 @@ bool CMyApp::OnInit2() SetAppName("Bitcoin");
#else
SetAppName("bitcoin");
+ umask(077);
#endif
//
|