mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user