X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=common%2Ftr_filter.c;h=65ee1f91a2fc7ff1ea269e36cfddfbc47d98627d;hb=f52f20507c568db42dbd2ddc99c7fa5a27012868;hp=cc59dd075aa162a1f35e078daec7e367ee423652;hpb=d1c9900fdcb012bed0cfc1cd7300d416cfb47466;p=trust_router.git diff --git a/common/tr_filter.c b/common/tr_filter.c index cc59dd0..65ee1f9 100644 --- a/common/tr_filter.c +++ b/common/tr_filter.c @@ -126,13 +126,14 @@ int tr_fspec_add_match(TR_FSPEC *fspec, TR_NAME *match) return -1; /* no space left */ } -/* returns 1 if the spec exactly matches */ +/* returns 1 if the spec matches */ int tr_fspec_matches(TR_FSPEC *fspec, TR_NAME *name) { int ii=0; for (ii=0; iibuf, fspec->match[ii]->buf)) + if ((fspec->match[ii]!=NULL) && + (0!=tr_prefix_wildcard_match(name->buf, fspec->match[ii]->buf))) return 1; } return 0;