NETCFG: set the right file permissions so its not world writeable.
[citadel.git] / 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 */