From 3e57e3f72a4efc9b52c3ab1d95d1814db4cd3f96 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 15 Jan 2017 18:15:06 -0500 Subject: [PATCH] Fixed a syntax error introduced by the previous commit. Maybe the Russians did it! HAHAHAHA --- citadel/modules/vcard/serv_vcard.c | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/citadel/modules/vcard/serv_vcard.c b/citadel/modules/vcard/serv_vcard.c index db2f6114f..89692e34e 100644 --- a/citadel/modules/vcard/serv_vcard.c +++ b/citadel/modules/vcard/serv_vcard.c @@ -1510,9 +1510,9 @@ const char *CitadelServiceDICT_TCP="DICT_TCP"; CTDL_MODULE_INIT(vcard) { struct ctdlroom qr; - char filename[256]; - FILE *fp; - int rv = 0; + //char filename[256]; + //FILE *fp; + //int rv = 0; if (!threading) { @@ -1551,24 +1551,24 @@ CTDL_MODULE_INIT(vcard) * * FIXME this no longer works * - assoc_file_name(filename, sizeof filename, &qr, ctdl_netcfg_dir); - fp = fopen(filename, "a"); - if (fp != NULL) { - fclose(fp); - rv = chown(filename, CTDLUID, (-1)); - if (rv == -1) { - syslog(LOG_ERR, "Failed to adjust ownership of %s: %s", filename, strerror(errno)); - } - rv = chmod(filename, 0600); - if (rv == -1) { - syslog(LOG_ERR, "Failed to adjust ownership of %s: %s", filename, strerror(errno)); - } - } - else { - syslog(LOG_ERR, "Cannot create %s: %s", filename, strerror(errno)); - } - } */ + //assoc_file_name(filename, sizeof filename, &qr, ctdl_netcfg_dir); + //fp = fopen(filename, "a"); + //if (fp != NULL) { + //fclose(fp); + //rv = chown(filename, CTDLUID, (-1)); + //if (rv == -1) { + //syslog(LOG_ERR, "Failed to adjust ownership of %s: %s", filename, strerror(errno)); + //} + //rv = chmod(filename, 0600); + //if (rv == -1) { + //syslog(LOG_ERR, "Failed to adjust ownership of %s: %s", filename, strerror(errno)); + //} + //} + //else { + //syslog(LOG_ERR, "Cannot create %s: %s", filename, strerror(errno)); + //} + } /* for postfix tcpdict */ CtdlRegisterServiceHook(CtdlGetConfigInt("c_pftcpdict_port"), /* Postfix */ -- 2.30.2