diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-15 16:00:10 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-15 16:00:10 +0000 |
commit | a86893c2f9ad16633d442187145768462919ceb6 (patch) | |
tree | c65f2c451cbbf5a4746512d9319b71c97861c31a /config.c | |
parent | d849649aa2d4108321205e4032ed3160194dbaa4 (diff) |
Fix glob issue on solaris (bug #3047)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4453 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rwxr-xr-x | config.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |