FreeBSD/usr.sbin/jail/config.c
/*
 * Return if a jail name is a wildcard.
 */
Return if a jail name is a wildcard.
Return if a jail name is a wildcard .
int
wild_jail_name(const char *wname)
{
	const char *wc;
	for (wc = strchr(wname, '*'); wc; wc = strchr(wc + 1, '*'))
		if ((wc == wname || wc[-1] == '.') &&
		    (wc[1] == '\0' || wc[1] == '.'))
			return 1;
	return 0;
}
int wild_jail_name ( const char * wname ) { const char * wc ; for ( wc = strchr ( wname , ' ' ) ; wc ; wc = strchr ( wc + 1 , ' ' ) ) if ( ( wc == wname || wc [ -1 ] == ' ' ) && ( wc [ 1 ] == ' \0 ' || wc [ 1 ] == ' ' ) ) return 1 ; return 0 ; }
Return if a jail name is a wildcard.
Return if a jail name is a wildcard .