From: Art Cancro Date: Sun, 15 Jan 2017 23:15:06 +0000 (-0500) Subject: Fixed a syntax error introduced by the previous commit. Maybe the Russians did it... X-Git-Tag: v939~640 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=3e57e3f72a4efc9b52c3ab1d95d1814db4cd3f96 Fixed a syntax error introduced by the previous commit. Maybe the Russians did it! HAHAHAHA --- 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 */