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>
Mon, 25 Feb 2013 20:02:26 +0000 (21:02 +0100)
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 */