make host access controls case insensitive

This commit is contained in:
Andrew Tridgell
1998-05-14 04:31:03 +00:00
parent 0cea42440f
commit 5a96ee0599
2 changed files with 15 additions and 0 deletions

12
util.c
View File

@@ -531,3 +531,15 @@ void glob_expand(char **argv, int *argc, int maxargs)
(*argc) += i;
#endif
}
/*******************************************************************
convert a string to lower case
********************************************************************/
void strlower(char *s)
{
while (*s) {
if (isupper(*s)) *s = tolower(*s);
s++;
}
}