]> code.citadel.org Git - citadel.git/blobdiff - textclient/commands.c
Meow meow! Applied patches sent by LadySerenaKitty for improved FreeBSD compatibility.
[citadel.git] / textclient / commands.c
index cecbb4d1fa5d073e3263848785db50d243afee46..c2f9f77bd0ce882f4bae8a2eebafbcad0a318de6 100644 (file)
@@ -932,9 +932,16 @@ void load_command_set(void)
                snprintf(buf, sizeof buf, "%s/.citadelrc", getenv("HOME"));
                ccfile = fopen(buf, "r");
        }
+       if (getenv("APPDIR") != NULL) {
+               snprintf(buf, sizeof buf, "%s/citadel.rc", getenv("APPDIR"));
+               ccfile = fopen(buf, "r");
+       }
        if (ccfile == NULL) {
                ccfile = fopen(file_citadel_rc, "r");
        }
+       if (ccfile == NULL) {
+               ccfile = fopen("/usr/local/etc/citadel.rc", "r");
+       }
        if (ccfile == NULL) {
                ccfile = fopen("/etc/citadel.rc", "r");
        }