X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitadel.c;h=6779f8978c8b825a245f87a9eb02d22839be2f53;hb=1248e88ae490d17b4896ada5a74a0a9ea23b365c;hp=ac21ebc9011695c8482d6569f899762181fd6207;hpb=e612033104c17c8adcad19d7dc8efbafa8b33f2e;p=citadel.git diff --git a/citadel/citadel.c b/citadel/citadel.c index ac21ebc90..6779f8978 100644 --- a/citadel/citadel.c +++ b/citadel/citadel.c @@ -50,6 +50,7 @@ #include "snprintf.h" #endif #include "screen.h" +#include "citadel_dirs.h" #include "md5.h" @@ -1122,13 +1123,7 @@ int main(int argc, char **argv) * guaranteed to have the uid/gid we want. */ if (!getuid() || !getgid()) { - if (stat( -#ifndef HAVE_ETC_DIR - CTDLDIR -#else - ETC_DIR -#endif - "/citadel.config", &st) < 0) { + if (stat(file_citadel_config, &st) < 0) { perror("couldn't stat citadel.config"); logoff(NULL, 3); }