aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2014-12-12 23:24:10 +0000
committerwarptangent <warptangent@inbox.com>2015-01-04 19:39:43 -0800
commit59d2b0ed1cb9f25c1cf25d75cda864a44a094bde (patch)
tree6534ef119c723771c469385751467d773095e98a
parentdb_lmdb: catch attempt to remove block from an empty blockchain (diff)
downloadmonero-59d2b0ed1cb9f25c1cf25d75cda864a44a094bde.tar.xz
db_lmdb: do not give the group database write permissions
-rw-r--r--src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp b/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp
index a4dbb1d88..9d0728f6c 100644
--- a/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp
+++ b/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp
@@ -530,7 +530,7 @@ void BlockchainLMDB::open(const std::string& filename)
size_t mapsize = 1LL << 34;
if (auto result = mdb_env_set_mapsize(m_env, mapsize))
throw0(DB_ERROR(std::string("Failed to set max memory map size: ").append(mdb_strerror(result)).c_str()));
- if (auto result = mdb_env_open(m_env, filename.c_str(), 0, 0664))
+ if (auto result = mdb_env_open(m_env, filename.c_str(), 0, 0644))
throw0(DB_ERROR(std::string("Failed to open lmdb environment: ").append(mdb_strerror(result)).c_str()));
// get a read/write MDB_txn