2000-08-29  Ulrich Drepper  <drepper@redhat.com>

	* inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
	names don't match don't return.
	Patch by Olaf Kirch <okir@flash.lst.de>.
This commit is contained in:
Ulrich Drepper 2000-08-29 18:12:01 +00:00
parent 1a6c971d00
commit 30f1226b0b
4 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2000-08-29 Ulrich Drepper <drepper@redhat.com>
* inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
names don't match don't return.
Patch by Olaf Kirch <okir@flash.lst.de>.
2000-08-28 Ulrich Drepper <drepper@redhat.com>
* time/strftime.c (my_strftime): Handle # flag for %b as well.

View file

@ -615,8 +615,9 @@ __checkhost_sa (struct sockaddr *ra, size_t ralen, char *lhost,
/* XXX */
if (getnameinfo(ra, ralen,
raddr, sizeof(raddr), NULL, 0,
NI_NUMERICHOST) == 0)
return negate * (strcmp(raddr, lhost) == 0);
NI_NUMERICHOST) == 0
&& strcmp(raddr, lhost) == 0)
return negate;
/* Better be a hostname. */
match = 0;

View file

@ -78,9 +78,9 @@ reorder-after <z>
% words or names are only to be distinguished by 'v' or % 'w', 'v' is
% placed before 'w'.
reorder-after <U0056>
<U0057> <v>;<BAS>;<CAP>;<w> # W
<U0057> <v>;<BAS>;<CAP>;<w> % W
reorder-after <U0076>
<U0077> <w>;<BAS>;<MIN>;<w> # w
<U0077> <v>;<BAS>;<MIN>;<w> % w
reorder-after <U00E3>
<U00E4> <ae>;<REU>;<MIN>;IGNORE % ä

View file

@ -85,6 +85,7 @@ generated := $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10) \
include ../Rules
ifeq (yes,$(built-static-nss))
# We need it for "make check" only. We can skip them if they haven't
# been built yet during "make".
otherlibs += $(wildcard $(nssobjdir)/libnss_files.a \