diff options
author | okan <okan> | 2011-06-25 13:37:05 +0000 |
---|---|---|
committer | okan <okan> | 2011-06-25 13:37:05 +0000 |
commit | bcf90f5f3494e3406a1b66ed0b6f8232d55e1a16 (patch) | |
tree | e8901b21b25aca26df015b6e6523551c50d8f7dd /conf.c | |
parent | 0573d184f7fe80a1278f66aaf8692361965615bf (diff) | |
download | cwm-bcf90f5f3494e3406a1b66ed0b6f8232d55e1a16.tar.gz cwm-bcf90f5f3494e3406a1b66ed0b6f8232d55e1a16.tar.xz cwm-bcf90f5f3494e3406a1b66ed0b6f8232d55e1a16.zip |
warn if we can't parse the config file on start, just like we do on reload.
part of a larger diff that was ok oga@
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/conf.c b/conf.c index f5588bc..2a34d32 100644 --- a/conf.c +++ b/conf.c @@ -283,7 +283,8 @@ conf_setup(struct conf *c, const char *conf_file) conf_init(c); - (void)parse_config(c->conf_path, c); + if (parse_config(c->conf_path, c) == -1) + warnx("config file %s has errors, not loading", c->conf_path); } void |