]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 53117 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Fri, 2 Feb 2007 16:59:53 +0000 (16:59 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 2 Feb 2007 16:59:53 +0000 (16:59 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r53117 | file | 2007-02-02 10:58:09 -0600 (Fri, 02 Feb 2007) | 2 lines

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.4@53118 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index aa74f5b301df6c80a461337079201163a384c266..0d95bfd8e8dbd90ed2304db881fcf0d291f69e3f 100644 (file)
@@ -923,7 +923,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, withcomments)) {
+                                               if (process_text_line(cfg, &cat, buf, lineno, fn, withcomments)) {
                                                        cfg = NULL;
                                                        break;
                                                }