FreeBSD/contrib/openbsm/bin/auditreduce/auditreduce.c
/*
 * Check if the file name matches selection criteria.
 */
Check if the file name matches selection criteria.
Check if the file name matches selection criteria .
static int
select_filepath(char *path, uint32_t *optchkd)
{
	struct re_entry *rep;
	int match;
	SETOPT((*optchkd), OPT_of);
	match = 1;
	if (ISOPTSET(opttochk, OPT_of)) {
		match = 0;
		TAILQ_FOREACH(rep, &re_head, re_glue) {
			if (regexec(&rep->re_regexp, path, 0, NULL,
			    0) != REG_NOMATCH)
				return (!rep->re_negate);
		}
	}
	return (match);
}
static int select_filepath ( char * path , uint32_t * optchkd ) { struct re_entry * rep ; int match ; SETOPT ( ( * optchkd ) , OPT_of ) ; match = 1 ; if ( ISOPTSET ( opttochk , OPT_of ) ) { match = 0 ; TAILQ_FOREACH ( rep , & re_head , re_glue ) { if ( regexec ( & rep -> re_regexp , path , 0 , NULL , 0 ) != REG_NOMATCH ) return ( ! rep -> re_negate ) ; } } return ( match ) ; }
Check if the file name matches selection criteria.
Check if the file name matches selection criteria .