From 65d921173c6e3aa4f30dd78561d3a6f5d5f4cf31 Mon Sep 17 00:00:00 2001 From: Quora Dodrill Date: Tue, 9 Jul 2013 20:16:04 -0700 Subject: [PATCH] src/ircd: Missed case where ircd.conf is unreadable to the ircd --- src/ircd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircd.c b/src/ircd.c index 7a4f9b11..e5f1ad6b 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -621,7 +621,7 @@ main(int argc, char *argv[]) } /* Make sure config file exists -- Quora */ - if( access( CPATH, F_OK ) == -1 ) { + if( access( CPATH, F_OK|R_OK ) == -1 ) { inotice("FATAL: No config file found at %s, exiting", CPATH); exit(-1); }