NETCFG: set the right file permissions so its not world writeable.
[citadel.git] / citadel / modules / vcard / serv_vcard.c
index fe4a2b0c50a8e084edcc16be447c7c2ac8ae7ad2..1512c66b7652d77bcaab3400a1641bfe30672881 100644 (file)
@@ -1500,6 +1500,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 */