X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fconfig.c;h=8562f3472f213f4e4ddbe2113d227464c38a60e0;hb=ca0714f168ab7cb7af8177e10941aa5c1fa3b09f;hp=ed95eab0a5b3b81648a89674bdc10281f6c833ce;hpb=15036e4105019af481eab5a053d54df4033d8d1d;p=citadel.git diff --git a/citadel/config.c b/citadel/config.c index ed95eab0a..8562f3472 100644 --- a/citadel/config.c +++ b/citadel/config.c @@ -24,7 +24,7 @@ #include "config.h" struct config config; -char bbs_home_directory[PATH_MAX] = BBSDIR; +char ctdl_home_directory[PATH_MAX] = CTDLDIR; int home_specified = 0; /* @@ -36,12 +36,12 @@ void get_config(void) { FILE *cfp; struct stat st; - if (chdir(home_specified ? bbs_home_directory : BBSDIR) != 0) { + if (chdir(home_specified ? ctdl_home_directory : CTDLDIR) != 0) { fprintf(stderr, "This program could not be started.\n" "Unable to change directory to %s\n" "Error: %s\n", - (home_specified ? bbs_home_directory : BBSDIR), + (home_specified ? ctdl_home_directory : CTDLDIR), strerror(errno)); exit(1); } @@ -50,7 +50,7 @@ void get_config(void) { fprintf(stderr, "This program could not be started.\n" "Unable to open %s/citadel.config\n" "Error: %s\n", - (home_specified ? bbs_home_directory : BBSDIR), + (home_specified ? ctdl_home_directory : CTDLDIR), strerror(errno)); exit(1); } @@ -60,7 +60,7 @@ void get_config(void) { exit(1); } #ifndef __CYGWIN__ - if (st.st_uid != BBSUID || st.st_mode != (S_IFREG | S_IRUSR | S_IWUSR)) { + if (st.st_uid != CTDLUID || st.st_mode != (S_IFREG | S_IRUSR | S_IWUSR)) { fprintf(stderr, "check the permissions on citadel.config\n"); exit(1); }