make it compile...

This commit is contained in:
cgd 1993-11-02 08:44:00 +00:00
parent aea2695257
commit 454f76bbdd
1 changed files with 4 additions and 3 deletions

View File

@ -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 <sys/param.h>
@ -41,6 +41,7 @@ static char *rcsid = "$Id: verify.c,v 1.6 1993/11/02 07:51:14 cgd Exp $";
#include <dirent.h>
#include <fts.h>
#include <unistd.h>
#include <fnmatch.h>
#include <errno.h>
#include <stdio.h>
#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))