mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 15:48:05 +00:00
restrict file permissions on linux to the user only
This commit is contained in:
parent
25b12b8839
commit
bd336ba272
2
db.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;
|
||||||
|
Loading…
Reference in New Issue
Block a user