(match): remove #ifdef HAVE_FNMATCH. We have a fnmatch implementation
in roken and therefore always have it. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5359 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -617,11 +617,7 @@ checkuser(char *fname, char *name)
|
||||
static int
|
||||
match(const char *pattern, const char *string)
|
||||
{
|
||||
#ifdef HAVE_FNMATCH
|
||||
return fnmatch(pattern, string, FNM_NOESCAPE);
|
||||
#else
|
||||
return strcmp(pattern, "*") != 0 && strcmp(pattern, string) != 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int
|
||||
|
Reference in New Issue
Block a user