From 6586299f551b58c87ffe45f80c3082b6e776d448 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 15 Jan 2015 07:19:30 +0100 Subject: [PATCH] Restrictive mdb_copy file mode. Copied from 58ddb5527bd4868bb7017cfe2051bc2e24bcf5a8. --- libraries/liblmdb/mdb_copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb_copy.c b/libraries/liblmdb/mdb_copy.c index e7f965c03a..af0a941110 100644 --- a/libraries/liblmdb/mdb_copy.c +++ b/libraries/liblmdb/mdb_copy.c @@ -64,7 +64,7 @@ int main(int argc,char * argv[]) act = "opening environment"; rc = mdb_env_create(&env); if (rc == MDB_SUCCESS) { - rc = mdb_env_open(env, argv[1], flags, 0664); + rc = mdb_env_open(env, argv[1], flags, 0600); } if (rc == MDB_SUCCESS) { act = "copying"; -- 2.39.5