Commit 60cc01a6 authored by Wayne Davison's avatar Wayne Davison

When make_file() gets a stat() error on a file, the check-for-

exclusion-before-reporting-an-error code allows a dir-specific
rule to match the unknown file, not just a non-dir rule.
parent f5761a34
......@@ -752,7 +752,8 @@ struct file_struct *make_file(char *fname, struct file_list *flist,
int save_errno = errno;
/* See if file is excluded before reporting an error. */
if (filter_level != NO_FILTERS
&& is_excluded(thisname, 0, filter_level))
&& (is_excluded(thisname, 0, filter_level)
|| is_excluded(thisname, 1, filter_level)))
return NULL;
if (save_errno == ENOENT) {
#ifdef SUPPORT_LINKS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment