aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-02 16:58:09 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-02 16:58:09 +0000
commit8d68ea3d42ef1bcecf2a8f23ab73e875cc529132 (patch)
tree9b1a79e271df07007877961fc6679d0a73fe3ca6 /config.c
parent5df26164a6048aa40b4259d4a22b3d35a3ebdf5d (diff)
Pass the glob expanded filename to process_text_line so that error messages contain the actual filename, not the original include one. (issue #8959 reported by tzafrir)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53117 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 989cd0b15..75b3f6ee7 100644
--- a/config.c
+++ b/config.c
@@ -651,7 +651,7 @@ static struct ast_config *config_text_file_load(const char *database, const char
if (process_buf) {
char *buf = ast_strip(process_buf);
if (!ast_strlen_zero(buf)) {
- if (process_text_line(cfg, &cat, buf, lineno, filename)) {
+ if (process_text_line(cfg, &cat, buf, lineno, fn)) {
cfg = NULL;
break;
}