projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4904b64
)
support GLOB_PERIOD flag (GNU extension) to glob function
author
Rich Felker
<dalias@aerifal.cx>
Sun, 22 Jan 2012 20:49:42 +0000
(15:49 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 22 Jan 2012 20:49:42 +0000
(15:49 -0500)
patch by sh4rm4
src/regex/glob.c
patch
|
blob
|
history
diff --git
a/src/regex/glob.c
b/src/regex/glob.c
index 550f655ca8090f434631a0b50e609fc403fe7cb9..bbe78f7d9a345372a0822d4a89d4fbdb5b6d6d16 100644
(file)
--- a/
src/regex/glob.c
+++ b/
src/regex/glob.c
@@
-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, '/'))) {