W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

PATCH: DNS Error messages

From: Peter Stamfest <peter.stamfest@eunet.at>
Date: Thu, 7 Sep 2000 11:09:18 +0200 (CEST)
To: www-lib@w3.org
Message-ID: <Pine.LNX.4.21.0009071103280.8066-200000@peter.stamf.pr.at>

IMHO, there is a small glitch in HTDNS.c. Name Resolver errors do not get
reported via the standard error variable errno (and cannot be translated
using strerror). Thus, when a resolver error is encountered, the last
"real" system error gets reported, but not the proper resolver error.

The attached patch replaces the error message handling in HTDNS.c and
uses the hstrerror() function to obtain the message.

I would like to ask people to check the patch, especially the part that
deals with thread-safe resolver routines.

One problem that I see is that my glibc documentation mentiones that
hstrerror is obsolete, without giving any information about a replacement. 

The patch is against the current CVS and should be applied in Library/src.

peter


Received on Thursday, 7 September 2000 05:11:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT