When make_file() gets a stat() error on a file, the check-for-
authorWayne Davison <wayned@samba.org>
Sat, 11 Nov 2006 15:34:31 +0000 (15:34 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 11 Nov 2006 15:34:31 +0000 (15:34 +0000)
exclusion-before-reporting-an-error code allows a dir-specific
rule to match the unknown file, not just a non-dir rule.

flist.c

diff --git a/flist.c b/flist.c
index 08a75b2..9a493af 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -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