From e16c6e35fc3afa903e522114115c5ac1987a902a Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 19 Mar 2010 14:17:40 +0100 Subject: Fix config file error message --- src/monitor/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/monitor') diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index ddf3de91f..26ac2f09d 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -2257,7 +2257,7 @@ int main(int argc, const char *argv[]) /* Parse config file, fail if cannot be done */ ret = load_configuration(tmp_ctx, config_file, &monitor); if (ret != EOK) { - if (ret == EIO) { + if (ret == EPERM) { DEBUG(1, ("Cannot read configuration file %s\n", config_file)); ERROR("Cannot read config file %s, please check if permissions " "are 0600 and the file is owned by root.root\n", config_file); -- cgit