New versions of Berkeley DB (I tested with 4.5.20) seem to
[citadel.git] / citadel / server_main.c
index d831ec0f5dc14cfcd5628e6abcc67d5a5613e316..7f9551ebc8bec39dfbbc10a4b409291fcb24c1b7 100644 (file)
@@ -241,6 +241,8 @@ int main(int argc, char **argv)
         * corresponding group ids
         */
        if (drop_root_perms) {
+               cdb_chmod_data();       /* make sure we own our data files */
+
 #ifdef SOLARIS_GETPWUID
                pwp = getpwuid_r(config.c_ctdluid, &pw, pwbuf, sizeof(pwbuf));
 #else