From 30f1226b0b921c541d539450e5b6fe8af7fc4ab9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 29 Aug 2000 18:12:01 +0000 Subject: Update. 2000-08-29 Ulrich Drepper * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the names don't match don't return. Patch by Olaf Kirch . --- ChangeLog | 6 ++++++ inet/rcmd.c | 5 +++-- localedata/locales/sv_SE | 4 ++-- posix/Makefile | 1 + 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 70c0b6c..60cf864 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-08-29 Ulrich Drepper + + * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the + names don't match don't return. + Patch by Olaf Kirch . + 2000-08-28 Ulrich Drepper * time/strftime.c (my_strftime): Handle # flag for %b as well. diff --git a/inet/rcmd.c b/inet/rcmd.c index 6c01f96..16ad02b 100644 --- a/inet/rcmd.c +++ b/inet/rcmd.c @@ -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; diff --git a/localedata/locales/sv_SE b/localedata/locales/sv_SE index 167e855..3d5b6a5 100644 --- a/localedata/locales/sv_SE +++ b/localedata/locales/sv_SE @@ -78,9 +78,9 @@ reorder-after % words or names are only to be distinguished by 'v' or % 'w', 'v' is % placed before 'w'. reorder-after - ;;; # W + ;;; % W reorder-after - ;;; # w + ;;; % w reorder-after ;;;IGNORE % ä diff --git a/posix/Makefile b/posix/Makefile index f313bb4..d1dc009 100644 --- a/posix/Makefile +++ b/posix/Makefile @@ -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 \ -- cgit v1.1