* Applied a patch sent in by Wilfried Goesgens which allows the various
[citadel.git] / citadel / citadel.c
index 021872e546b395245fcad604b1af439f5160e636..2105364a2b98afda41b8c081a58b78b84210ba21 100644 (file)
@@ -1122,7 +1122,13 @@ int main(int argc, char **argv)
                         * guaranteed to have the uid/gid we want.
                         */
                        if (!getuid() || !getgid()) {
-                               if (stat(CTDLDIR "/citadel.config", &st) < 0) {
+                               if (stat(
+#ifndef HAVE_ETC_DIR
+                                                CTDLDIR 
+#else
+                                                ETC_DIR
+#endif
+                                                "/citadel.config", &st) < 0) {
                                        perror("couldn't stat citadel.config");
                                        logoff(NULL, 3);
                                }