glob: Allow symlinks to be globbed.
Instead of checking explicitly for regular files, check that matches are not directories. Other file types probably aren't worth worrying about.
This commit is contained in:
parent
419776fc72
commit
d113f44369
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ const char *I_NextGlob(glob_t *glob)
|
|||
{
|
||||
return NULL;
|
||||
}
|
||||
} while (de->d_type != DT_REG || !MatchesGlob(de->d_name, glob->glob));
|
||||
} while (de->d_type == DT_DIR || !MatchesGlob(de->d_name, glob->glob));
|
||||
|
||||
// Return the fully-qualified path, not just the bare filename.
|
||||
free(glob->last_filename);
|
||||
|
|
|
|||
Loading…
Reference in a new issue