mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@53117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
config.c
2
config.c
@@ -651,7 +651,7 @@ static struct ast_config *config_text_file_load(const char *database, const char
|
|||||||
if (process_buf) {
|
if (process_buf) {
|
||||||
char *buf = ast_strip(process_buf);
|
char *buf = ast_strip(process_buf);
|
||||||
if (!ast_strlen_zero(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;
|
cfg = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user