Skip to content
Snippets Groups Projects
Commit 54b41848 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix glob issue on solaris (bug #3047)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 5d92e208
No related merge requests found
......@@ -513,7 +513,11 @@ static struct ast_config *__ast_load(const char *configfile, struct ast_config *
int glob_ret;
glob_t globbuf;
globbuf.gl_offs = 0; /* initialize it to silence gcc */
glob_ret = glob(fn, GLOB_NOMATCH|GLOB_BRACE, NULL, &globbuf);
#ifdef SOLARIS
glob_ret = glob(fn, GLOB_NOMAGIC, NULL, &globbuf);
#else
glob_ret = glob(fn, GLOB_NOMAGIC|GLOB_BRACE, NULL, &globbuf);
#endif
if (glob_ret == GLOB_NOSPACE)
ast_log(LOG_WARNING,
"Glob Expansion of pattern '%s' failed: Not enough memory\n", fn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment