FILE *cfp;
struct stat st;
- if (chdir(home_specified ? ctdl_home_directory : CTDLDIR) != 0) {
+ if (chdir(ctdl_bbsbase_dir) != 0) {
fprintf(stderr,
"This program could not be started.\n"
"Unable to change directory to %s\n"
"Error: %s\n",
- (home_specified ? ctdl_home_directory : CTDLDIR),
+ ctdl_bbsbase_dir,
strerror(errno));
exit(CTDLEXIT_HOME);
}
}
#ifndef __CYGWIN__
if (st.st_uid != CTDLUID) {
- fprintf(stderr, "%s must be owned by uid=%d but %d owns it!\n", file_citadel_config, CTDLUID, st.st_uid);
+ fprintf(stderr, "%s must be owned by uid=%ld but %ld owns it!\n", file_citadel_config, CTDLUID, st.st_uid);
exit(CTDLEXIT_CONFIG);
}
int desired_mode = (S_IFREG | S_IRUSR | S_IWUSR) ;