diff options
author | phk <phk@FreeBSD.org> | 2003-10-21 08:27:05 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-21 08:27:05 +0000 |
commit | d17fa4e775df472e1132a3439ff2290e528a1d5e (patch) | |
tree | 3202cca545cf4b89f91b9a9dc3529e8a93a01d94 /usr.sbin/mtree/excludes.c | |
parent | b8f582b8866ce448d694ad70af2a6e211f2b9ae0 (diff) | |
download | FreeBSD-src-d17fa4e775df472e1132a3439ff2290e528a1d5e.zip FreeBSD-src-d17fa4e775df472e1132a3439ff2290e528a1d5e.tar.gz |
Remove clause 3 in the copyrights (according to permission in src/COPYRIGHT)
Remove trailing whitespace.
Diffstat (limited to 'usr.sbin/mtree/excludes.c')
-rw-r--r-- | usr.sbin/mtree/excludes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mtree/excludes.c b/usr.sbin/mtree/excludes.c index e67cdb9..21a49b0 100644 --- a/usr.sbin/mtree/excludes.c +++ b/usr.sbin/mtree/excludes.c @@ -12,7 +12,7 @@ * no representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied * warranty. - * + * * THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''. M.I.T. DISCLAIMS * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF @@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$"); #include "extern.h" /* - * We're assuming that there won't be a whole lot of excludes, + * We're assuming that there won't be a whole lot of excludes, * so it's OK to use a stupid algorithm. */ struct exclude { @@ -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; } |