closes issue #11005, where #include uses the current dir instead of the config dir (/etc/asterisk) for relative path includes for AEL

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86967 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Steve Murphy
2007-10-24 13:21:29 +00:00
parent d914cbee48
commit b7ef49c931
6 changed files with 129 additions and 122 deletions

View File

@@ -406,7 +406,11 @@ includes { STORE_POS; return KW_INCLUDES;}
} else {
strncpy(fnamebuf, p1+1, p2-p1-1);
fnamebuf[p2-p1-1] = 0;
if (fnamebuf[0] != '/') {
char fnamebuf2[1024];
snprintf(fnamebuf2,sizeof(fnamebuf2), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, fnamebuf);
ast_copy_string(fnamebuf,fnamebuf2,sizeof(fnamebuf));
}
#ifdef SOLARIS
glob_ret = glob(fnamebuf, GLOB_NOCHECK, NULL, &globbuf);
#else