calc home dirs
authorWilfried Göesgens <willi@citadel.org>
Fri, 20 Jan 2006 16:26:42 +0000 (16:26 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 20 Jan 2006 16:26:42 +0000 (16:26 +0000)
citadel/commands.c

index d81f41ca7039a98a8610643c4085f25f6b619d5e..7fdd065781ceb06ae5e15487aa2ad4ba678b8cda 100644 (file)
@@ -764,7 +764,8 @@ void load_command_set(void)
 
        ccfile = NULL;
        if (getenv("HOME") != NULL) {
-               ccfile = fopen(file_citadel_rc, "r");
+               snprintf(buf, sizeof buf, "%s/.citadelrc", getenv("HOME"));
+               ccfile = fopen(buf, "r");
        }
        if (ccfile == NULL) {
                ccfile = fopen(file_citadel_rc, "r");