]> git.sur5r.net Git - openldap/commitdiff
Fix env_open mode bits
authorHoward Chu <hyc@symas.com>
Tue, 22 Jul 2014 01:20:31 +0000 (18:20 -0700)
committerHoward Chu <hyc@symas.com>
Tue, 22 Jul 2014 01:20:31 +0000 (18:20 -0700)
libraries/liblmdb/mdb_copy.c

index c54fefe9f11f87506863311d47927581086cfa2a..e7f965c03af1ae38c7f07553b6254af5a8b46817 100644 (file)
@@ -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, 0);
+               rc = mdb_env_open(env, argv[1], flags, 0664);
        }
        if (rc == MDB_SUCCESS) {
                act = "copying";