Browse Source

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
0.8
s_nakamoto 15 years ago
parent
commit
e899779450
  1. 2
      db.cpp
  2. 1
      ui.cpp

2
db.cpp

@ -79,7 +79,7 @@ CDB::CDB(const char* pszFile, const char* pszMode) : pdb(NULL)
DB_THREAD | DB_THREAD |
DB_PRIVATE | DB_PRIVATE |
DB_RECOVER, DB_RECOVER,
0); S_IRUSR | S_IWUSR);
if (ret > 0) if (ret > 0)
throw runtime_error(strprintf("CDB() : error %d opening database environment\n", ret)); throw runtime_error(strprintf("CDB() : error %d opening database environment\n", ret));
fDbEnvInit = true; fDbEnvInit = true;

1
ui.cpp

@ -3494,6 +3494,7 @@ bool CMyApp::OnInit2()
SetAppName("Bitcoin"); SetAppName("Bitcoin");
#else #else
SetAppName("bitcoin"); SetAppName("bitcoin");
umask(077);
#endif #endif
// //

Loading…
Cancel
Save