* Applied a patch sent in by Wilfried Goesgens which allows the various
[citadel.git] / citadel / commands.c
index 8e0a44c31b79746c30b38d33245f64b4645a66f8..4fd1d39508b53282f272cfbf766a9c008e4e1cc0 100644 (file)
@@ -768,7 +768,13 @@ void load_command_set(void)
                ccfile = fopen(buf, "r");
        }
        if (ccfile == NULL) {
-               snprintf(buf, sizeof buf, "%s/citadel.rc", CTDLDIR);
+               snprintf(buf, sizeof buf, 
+#ifndef HAVE_ETC_DIR
+                                CTDLDIR
+#else
+                                ETC_DIR
+#endif
+                                "/citadel.rc");
                ccfile = fopen(buf, "r");
        }
        if (ccfile == NULL) {