[Home]

Summary:ASTERISK-02996: glob call in config.c causes seg fault
Reporter:jacs (jacs)Labels:
Date Opened:2004-12-15 05:33:44.000-0600Date Closed:2004-12-19 20:38:02.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) config.diff.txt
Description:The flags in the glob call within config.c are set to
GLOB_NOMATCH|GLOB_BRACE. However, GLOB_NOMATCH is a return value not a flag and thus crashes the glob call. Should the flags be set to GLOB_NOCHECK|GLOB_BRACE?
Comments:By: jacs (jacs) 2004-12-15 05:41:53.000-0600

Just seen bug ASTERISK-3013047 which is reporting the same fault for solaris. Someone needs to double check what flags needs to be set.

By: Kevin P. Fleming (kpfleming) 2004-12-15 09:14:37.000-0600

This is correct, and my fault. When I changed this, I accidentally typed NOMATCH instead of NOMAGIC.

The correct fix is to replace GLOB_NOMATCH with GLOB_NOMAGIC. Sorry for the problems.

By: Mark Spencer (markster) 2004-12-15 11:21:17.000-0600

Fixed in CVS