0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

src/ircd: fix -configfile argument

This commit is contained in:
Quora Dodrill 2013-07-10 08:44:27 -07:00
parent 65d921173c
commit f6f049070e

View file

@ -621,8 +621,9 @@ main(int argc, char *argv[])
}
/* Make sure config file exists -- Quora */
if( access( CPATH, F_OK|R_OK ) == -1 ) {
inotice("FATAL: No config file found at %s, exiting", CPATH);
if( access( ConfigFileEntry.configfile, F_OK|R_OK ) == -1 ) {
inotice("FATAL: No config file found at %s, exiting",
ConfigFileEntry.configfile);
exit(-1);
}