diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-05-07 19:52:56 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-05-07 19:52:56 +0000 |
commit | 8f932310ff5abd9ebbe7a6c0630a11e9fe09a967 (patch) | |
tree | 3bdb3dc66205afc03700d486428307311c5ca86e | |
parent | 3f2da875f7d1a7f4bc2fc9b85c20d3067e8f4f1e (diff) |
Notes
-rw-r--r-- | lib/libc/gen/glob.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/glob.c b/lib/libc/gen/glob.c index c4364407cdef4..a36c522c4bdda 100644 --- a/lib/libc/gen/glob.c +++ b/lib/libc/gen/glob.c @@ -581,7 +581,8 @@ glob0(const Char *pattern, glob_t *pglob, struct glob_limit *limit, case STAR: pglob->gl_flags |= GLOB_MAGCHAR; /* collapse adjacent stars to one, - * to avoid exponential behavior + * to ensure "**" at the end continues to match the + * empty string */ if (bufnext == patbuf || bufnext[-1] != M_ALL) *bufnext++ = M_ALL; |