NETCFG: make shure files exist with proper permissions.
[citadel.git] / citadel / netconfig.c
index 9e3fdc9cb84265f29908c3b072811c4246181d93..d1a7539ff2d721f7ffc9976450bbec42c8f74e3a 100644 (file)
@@ -176,6 +176,9 @@ int ReadRoomNetConfigFile(OneRoomNetCfg **pOneRNCfg, char *filename)
                *pOneRNCfg = NULL;
                return 0;
        }
+       fchown(fd, CTDLUID, (-1));
+       fchmod(fd, 0600);
+
        if (*pOneRNCfg != NULL)
        {
                OneRNCfg = *pOneRNCfg;