NETCFG: set the right file permissions so its not world writeable.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 26 Jan 2013 18:59:29 +0000 (19:59 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 26 Jan 2013 18:59:29 +0000 (19:59 +0100)
citadel/modules/vcard/serv_vcard.c

index edcbd4cce6bcade7bd3b79d1174188163e120e4a..0952d6d3b931ce65ef0b414728ab3368e786780e 100644 (file)
@@ -1492,6 +1492,10 @@ CTDL_MODULE_INIT(vcard)
                        if (rv == -1)
                                syslog(LOG_EMERG, "Failed to adjust ownership of: %s [%s]", 
                                       filename, strerror(errno));
+                       rv = chmod(filename, 0600);
+                       if (rv == -1)
+                               syslog(LOG_EMERG, "Failed to adjust ownership of: %s [%s]", 
+                                      filename, strerror(errno));
                }
 
                /* for postfix tcpdict */