aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e070911..0b2fab8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -327,8 +327,10 @@ int main(int argc, char *argv[]) {
// no configuration passed by argument. use basic config.
char cfgfile[PATH_MAX * 2];
sprintf(cfgfile, "%s/%s", globals.sysconfdir, "omc.ini");
- if (!access(cfgfile, F_OK)) {
+ if (!access(cfgfile, F_OK | R_OK)) {
config_input = strdup(cfgfile);
+ } else {
+ msg(OMC_MSG_WARN, "OMC global configuration is not readable, or does not exist: %s", cfgfile);
}
}