summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/excludes.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/mtree/excludes.c')
-rw-r--r--usr.sbin/mtree/excludes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mtree/excludes.c b/usr.sbin/mtree/excludes.c
index 624b57a..253ef00 100644
--- a/usr.sbin/mtree/excludes.c
+++ b/usr.sbin/mtree/excludes.c
@@ -103,7 +103,7 @@ check_excludes(const char *fname, const char *path)
#define MATCH(g, n) (fnmatch((g), (n), FNM_PATHNAME) == 0)
LIST_FOREACH(e, &excludes, link) {
- if (e->pathname && MATCH(e->glob, path)
+ if ((e->pathname && MATCH(e->glob, path))
|| MATCH(e->glob, fname))
return 1;
}
OpenPOWER on IntegriCloud