From: Wilfried Goesgens Date: Sat, 26 Jan 2013 18:59:29 +0000 (+0100) Subject: NETCFG: set the right file permissions so its not world writeable. X-Git-Tag: v8.16~5 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=74bac159d317c25f2d47bc360bf29c20f41854ff NETCFG: set the right file permissions so its not world writeable. --- diff --git a/citadel/modules/vcard/serv_vcard.c b/citadel/modules/vcard/serv_vcard.c index fe4a2b0c5..1512c66b7 100644 --- a/citadel/modules/vcard/serv_vcard.c +++ b/citadel/modules/vcard/serv_vcard.c @@ -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 */