From 454f76bbdd7a70c865f501268ffefc750d7a8f20 Mon Sep 17 00:00:00 2001 From: cgd Date: Tue, 2 Nov 1993 08:44:00 +0000 Subject: [PATCH] make it compile... --- usr.sbin/mtree/verify.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/mtree/verify.c b/usr.sbin/mtree/verify.c index 2bfafff9bf9a..79dc930ada9f 100644 --- a/usr.sbin/mtree/verify.c +++ b/usr.sbin/mtree/verify.c @@ -33,7 +33,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)verify.c 5.11 (Berkeley) 4/17/92"; */ -static char *rcsid = "$Id: verify.c,v 1.6 1993/11/02 07:51:14 cgd Exp $"; +static char *rcsid = "$Id: verify.c,v 1.7 1993/11/02 08:44:00 cgd Exp $"; #endif /* not lint */ #include @@ -41,6 +41,7 @@ static char *rcsid = "$Id: verify.c,v 1.6 1993/11/02 07:51:14 cgd Exp $"; #include #include #include +#include #include #include #include "mtree.h" @@ -107,8 +108,8 @@ vwalk() } for (ep = level; ep; ep = ep->next) - if (ep->flags & F_MAGIC && fnmatch(ep->name, - p->fts_name, FNM_PATHNAME|FNM_QUOTE) || + if (ep->flags & F_MAGIC && !fnmatch(ep->name, + p->fts_name, FNM_PATHNAME) || !strcmp(ep->name, p->fts_name)) { ep->flags |= F_VISIT; if (compare(ep->name, ep, p))