support GLOB_PERIOD flag (GNU extension) to glob function
patch by sh4rm4
This commit is contained in:
parent
4904b64275
commit
787c2648a9
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ static int match_in_dir(const char *d, const char *p, int flags, int (*errfunc)(
|
|||
char *p2;
|
||||
size_t l = strlen(d);
|
||||
int literal;
|
||||
int fnm_flags= ((flags & GLOB_NOESCAPE) ? FNM_NOESCAPE : 0) | FNM_PERIOD;
|
||||
int fnm_flags= ((flags & GLOB_NOESCAPE) ? FNM_NOESCAPE : 0)
|
||||
| ((!(flags & GLOB_PERIOD)) ? FNM_PERIOD : 0);
|
||||
int error;
|
||||
|
||||
if ((p2 = strchr(p, '/'))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue