From: Hallvard Furuseth Date: Thu, 15 Jan 2015 06:19:30 +0000 (+0100) Subject: Restrictive mdb_copy file mode. X-Git-Tag: LMDB_0.9.15~31 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6586299f551b58c87ffe45f80c3082b6e776d448;p=openldap Restrictive mdb_copy file mode. Copied from 58ddb5527bd4868bb7017cfe2051bc2e24bcf5a8. --- 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";