/* Regular expressions (shell globbing, actually). */
if (nlp->regexp)
{
- if (fnmatch (nlp->name, p, FNM_TARPATH) == 0)
+ if (fnmatch (nlp->name, p, FNM_LEADING_DIR) == 0)
{
nlp->found = 1; /* Remember it matched */
if (f_startfile)
/* Regular expressions */
if (nlp->regexp)
{
- if (fnmatch (nlp->name, p, FNM_TARPATH) == 0)
+ if (fnmatch (nlp->name, p, FNM_LEADING_DIR) == 0)
return nlp; /* We got a match */
continue;
}
for (n = 0; n < size_re_exclude; n++)
{
- if (fnmatch (re_exclude[n], name, FNM_TARPATH) == 0)
+ if (fnmatch (re_exclude[n], name, FNM_LEADING_DIR) == 0)
return 1;
}
for (n = 0; n < size_exclude; n++)