make host access controls case insensitive
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index ffbdc93..ed8d34e 100644 (file)
--- a/util.c
+++ b/util.c
@@ -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++;
+       }
+}