summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-30 11:44:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:35:01 -0500
commitb75ca9aa2cf9a932547228458e0b3ad8e1053826 (patch)
treef399280a8ec567affd37f42cbcb8957b557ac068 /source4
parent81e130b592d128a1dc1e9f2abf91b1e376512b88 (diff)
downloadsamba-b75ca9aa2cf9a932547228458e0b3ad8e1053826.tar.gz
samba-b75ca9aa2cf9a932547228458e0b3ad8e1053826.tar.bz2
samba-b75ca9aa2cf9a932547228458e0b3ad8e1053826.zip
r9791: r11611@blu: tridge | 2005-08-30 21:48:22 +1000
recognise any case combination of 'localhost' as 127.0.0.1 (This used to be commit 1d8dae5167a1a08b69274fc17e6e010174420ab5)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/util.c b/source4/lib/util.c
index 173d755bec..2e0503b0d9 100644
--- a/source4/lib/util.c
+++ b/source4/lib/util.c
@@ -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";
}