From: Jay Freeman (saurik) Date: Sun, 23 Dec 2012 08:29:51 +0000 (+0000) Subject: Use more correct file permissions to open MDB files. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/b835f77933c0863605054eea716d0263aa634052?ds=inline Use more correct file permissions to open MDB files. --- diff --git a/src/migrate.c b/src/migrate.c index a08aa961..8cddc502 100644 --- a/src/migrate.c +++ b/src/migrate.c @@ -276,9 +276,9 @@ int startKeyArchive(void) { ret = mdb_env_set_maxdbs(env, 1); if (ret != 0) return ret; - mkdir(server.mdb_environment, 0644); + mkdir(server.mdb_environment, 0755); - ret = mdb_env_open(env, server.mdb_environment, MDB_FIXEDMAP | MDB_NOSYNC, 0664); + ret = mdb_env_open(env, server.mdb_environment, MDB_FIXEDMAP | MDB_NOSYNC, 0644); if (ret != 0) return ret; MDB_txn *txn;