-Copyright: (C) 1987-2020 Citadel development team; GPL V3
+Copyright: (C) 1987-2021 Citadel development team; GPL V3
* In addition, as a special exception, we hereby declare that our
favorite type of software is called "open source" -- NOT "free
* The condensed version:
1. Create a user on your system under which to run Citadel
- 2. Install supported versions of Berkeley DB, libical, and libsieve.
+ 2. Install supported versions of Berkeley DB, libical, and Expat.
3. ./configure && make && make install
4. Run the "setup" program
struct legacy_ctrl_format c;
memset(&c, 0, sizeof(c));
- fp = fopen(file_citadel_control, "rb+");
+ fp = fopen("citadel.control", "rb+");
if (fp != NULL) {
syslog(LOG_INFO, "control: legacy format record found -- importing to db");
fread(&c, sizeof(struct legacy_ctrl_format), 1, fp);
CtdlSetConfigLong( "MMfulltext", c.MMfulltext);
fclose(fp);
- if (unlink(file_citadel_control) != 0) {
- fprintf(stderr, "Unable to remove legacy control record %s after migrating it.\n", file_citadel_control);
+ if (unlink("citadel.control") != 0) {
+ fprintf(stderr, "Unable to remove legacy control record after migrating it.\n");
fprintf(stderr, "Exiting to prevent data corruption.\n");
exit(CTDLEXIT_CONFIG);
}
/* some of the frequently used files */
-extern char file_citadel_control[PATH_MAX];
extern char file_citadel_config[PATH_MAX];
extern char file_lmtp_socket[PATH_MAX];
extern char file_lmtp_unfiltered_socket[PATH_MAX];
char ctdl_bin_dir[PATH_MAX]="";
/* some of our files, that are needed in several places */
-char file_citadel_control[PATH_MAX]="";
char file_citadel_config[PATH_MAX]="";
char file_lmtp_socket[PATH_MAX]="";
char file_lmtp_unfiltered_socket[PATH_MAX]="";
"%srefcount_adjustments.dat",
ctdl_autoetc_dir);
StripSlashes(file_arcq, 0);
- snprintf(file_citadel_control,
- sizeof file_citadel_control,
- "%scitadel.control",
- ctdl_autoetc_dir
- );
- StripSlashes(file_citadel_control, 0);
+
snprintf(file_citadel_config,
sizeof file_citadel_config,
"%scitadel.config",
DBG_PRINT(ctdl_sbin_dir);
DBG_PRINT(ctdl_bin_dir);
DBG_PRINT(ctdl_utilbin_dir);
- DBG_PRINT(file_citadel_control);
DBG_PRINT(file_citadel_config);
DBG_PRINT(file_lmtp_socket);
DBG_PRINT(file_lmtp_unfiltered_socket);