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.20~142 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=45ddabdd3073d770c5b83a042a815b1413644d5a 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 edcbd4cce..0952d6d3b 100644 --- a/citadel/modules/vcard/serv_vcard.c +++ b/citadel/modules/vcard/serv_vcard.c @@ -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 */