mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
* resolv/res_hconf.c (_res_hconf_trim_domain): Use strcasecmp
instead of __strcasecmp. * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
2009-04-07 Ulrich Drepper <drepper@redhat.com>
|
2009-04-07 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* resolv/res_hconf.c (_res_hconf_trim_domain): Use strcasecmp
|
||||||
|
instead of __strcasecmp.
|
||||||
|
* resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
|
||||||
|
|
||||||
* string/stratcliff.c (do_test): Add memchr tests..
|
* string/stratcliff.c (do_test): Add memchr tests..
|
||||||
* wcsmbs/wcsatcliff.c (MEMCHR): Define.
|
* wcsmbs/wcsatcliff.c (MEMCHR): Define.
|
||||||
* sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
|
* sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
|
||||||
|
@@ -824,7 +824,7 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
|
|||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case T_PTR:
|
case T_PTR:
|
||||||
if (__builtin_expect (__strcasecmp (tname, bp) != 0, 0))
|
if (__builtin_expect (strcasecmp (tname, bp) != 0, 0))
|
||||||
{
|
{
|
||||||
syslog (LOG_NOTICE | LOG_AUTH, AskedForGot, qname, bp);
|
syslog (LOG_NOTICE | LOG_AUTH, AskedForGot, qname, bp);
|
||||||
cp += n;
|
cp += n;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1993, 1995-2006, 2007 Free Software Foundation, Inc.
|
/* Copyright (C) 1993, 1995-2006, 2007, 2009 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by David Mosberger (davidm@azstarnet.com).
|
Contributed by David Mosberger (davidm@azstarnet.com).
|
||||||
|
|
||||||
@@ -518,7 +518,7 @@ _res_hconf_trim_domain (char *hostname)
|
|||||||
|
|
||||||
trim_len = strlen (trim);
|
trim_len = strlen (trim);
|
||||||
if (hostname_len > trim_len
|
if (hostname_len > trim_len
|
||||||
&& __strcasecmp (&hostname[hostname_len - trim_len], trim) == 0)
|
&& strcasecmp (&hostname[hostname_len - trim_len], trim) == 0)
|
||||||
{
|
{
|
||||||
hostname[hostname_len - trim_len] = '\0';
|
hostname[hostname_len - trim_len] = '\0';
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user