summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/mtree')
-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 47ab298..624b57a 100644
--- a/usr.sbin/mtree/excludes.c
+++ b/usr.sbin/mtree/excludes.c
@@ -102,7 +102,7 @@ check_excludes(const char *fname, const char *path)
/* fnmatch(3) has a funny return value convention... */
#define MATCH(g, n) (fnmatch((g), (n), FNM_PATHNAME) == 0)
- for (e = excludes.lh_first; e != 0; e = e->link.le_next) {
+ LIST_FOREACH(e, &excludes, link) {
if (e->pathname && MATCH(e->glob, path)
|| MATCH(e->glob, fname))
return 1;
OpenPOWER on IntegriCloud