Commits (1)
...@@ -307,7 +307,7 @@ void globfree(glob_t* glob) ...@@ -307,7 +307,7 @@ void globfree(glob_t* glob)
#else /* __unix__ */ #else /* __unix__ */
// Case-insensitive version of glob() // Filename-case-insensitive version of glob()
int globi(const char *p, int flags, int globi(const char *p, int flags,
int (*errfunc) (const char *epath, int eerrno), int (*errfunc) (const char *epath, int eerrno),
glob_t *g) glob_t *g)
...@@ -316,6 +316,7 @@ int globi(const char *p, int flags, ...@@ -316,6 +316,7 @@ int globi(const char *p, int flags,
int len = 0; int len = 0;
if(p != NULL) { if(p != NULL) {
p = getfname(p);
while(*p != '\0' && len < MAX_PATH) { while(*p != '\0' && len < MAX_PATH) {
if(IS_ALPHA(*p)) if(IS_ALPHA(*p))
len += sprintf(pattern + len, "[%c%c]", toupper(*p), tolower(*p)); len += sprintf(pattern + len, "[%c%c]", toupper(*p), tolower(*p));
......