]> code.citadel.org Git - citadel.git/commitdiff
check cwd for citadel.rc
authorArt Cancro <ajc@citadel.org>
Sat, 30 Jan 1999 04:55:54 +0000 (04:55 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 30 Jan 1999 04:55:54 +0000 (04:55 +0000)
citadel/commands.c

index ec51dbaafd04613424aea239b94ff2cb0b379289..0a23f4bd62f19700e364eafc2e873fa3f0e641c9 100644 (file)
@@ -367,6 +367,9 @@ void load_command_set(void) {
                snprintf(buf,sizeof buf,"%s/citadel.rc",BBSDIR);
                ccfile = fopen(buf,"r");
                }
+       if (ccfile==NULL) {
+               ccfile = fopen("./citadel.rc","r");
+               }
        if (ccfile==NULL) {
                perror("commands: cannot open citadel.rc");
                logoff(errno);