diff options
author | 2014-03-26 21:27:09 +0000 | |
---|---|---|
committer | 2014-03-26 21:27:09 +0000 | |
commit | e1fa32dabcaae5d94d50da24d8090262f8594d83 (patch) | |
tree | b53b87490d8c1ff4772c2659d2b8c54989013cc8 | |
parent | Improve error reporting. (diff) | |
download | wireguard-openbsd-e1fa32dabcaae5d94d50da24d8090262f8594d83.tar.xz wireguard-openbsd-e1fa32dabcaae5d94d50da24d8090262f8594d83.zip |
Print correct filename if config errors exist in an "include"d file.
From upstream r3099
-rw-r--r-- | usr.sbin/unbound/util/config_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/unbound/util/config_file.c b/usr.sbin/unbound/util/config_file.c index 72f71199dab..baa9fccf4fb 100644 --- a/usr.sbin/unbound/util/config_file.c +++ b/usr.sbin/unbound/util/config_file.c @@ -800,7 +800,7 @@ config_read(struct config_file* cfg, const char* filename, const char* chroot) if(cfg_parser->errors != 0) { fprintf(stderr, "read %s failed: %d errors in configuration file\n", - cfg_parser->filename, cfg_parser->errors); + fname, cfg_parser->errors); errno=EINVAL; return 0; } |