r9791: r11611@blu: tridge | 2005-08-30 21:48:22 +1000
authorAndrew Tridgell <tridge@samba.org>
Tue, 30 Aug 2005 11:44:00 +0000 (11:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:35:01 +0000 (13:35 -0500)
 recognise any case combination of 'localhost' as 127.0.0.1

source/lib/util.c

index 173d755bec974c88992138bb4ce4cc79d97f43f1..2e0503b0d96ab2692843577042136ba53e9aaead 100644 (file)
@@ -341,7 +341,7 @@ uint32_t interpret_addr(const char *str)
        }
        /* recognise 'localhost' as a special name. This fixes problems with
           some hosts that don't have localhost in /etc/hosts */
-       if (strcmp(str,"localhost") == 0) {
+       if (strcasecmp(str,"localhost") == 0) {
                str = "127.0.0.1";
        }