git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9a1a7fb
)
r9791: r11611@blu: tridge | 2005-08-30 21:48:22 +1000
author
Andrew Tridgell
<tridge@samba.org>
Tue, 30 Aug 2005 11:44:00 +0000
(11:44 +0000)
committer
Gerald (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
patch
|
blob
|
history
diff --git
a/source/lib/util.c
b/source/lib/util.c
index 173d755bec974c88992138bb4ce4cc79d97f43f1..2e0503b0d96ab2692843577042136ba53e9aaead 100644
(file)
--- a/
source/lib/util.c
+++ b/
source/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 (strc
asec
mp(str,"localhost") == 0) {
str = "127.0.0.1";
}