NETCFG: make shure files exist with proper permissions.
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 10 Jun 2013 17:43:39 +0000 (19:43 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 10 Jun 2013 17:43:39 +0000 (19:43 +0200)
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;