summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-08-11 18:34:32 +0000
committerChristopher Faylor <me@cgf.cx>2004-08-11 18:34:32 +0000
commitcb3f750c79135d2d4a903e61107349c3ec69e254 (patch)
tree77f983812ee9bb45a298944d1bdd1632f33f9207 /winsup/cygwin
parentcbd6bc14070f831596c0679e21da827f259fe464 (diff)
downloadcygnal-cb3f750c79135d2d4a903e61107349c3ec69e254.tar.gz
cygnal-cb3f750c79135d2d4a903e61107349c3ec69e254.tar.bz2
cygnal-cb3f750c79135d2d4a903e61107349c3ec69e254.zip
* net.cc (cygwin_gethostbyname): Show failing host name on error.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/net.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index f90f1a04c..7bb900928 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-11 Christopher Faylor <cgf@timesys.com>
+
+ * net.cc (cygwin_gethostbyname): Show failing host name on error.
+
2004-08-10 Christopher Faylor <cgf@redhat.com>
* select.cc (select_stuff::wait): Correctly check for w4 array bounds.
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index b958e4365..ce1bf60e6 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -967,6 +967,7 @@ cygwin_gethostbyname (const char *name)
is_hostent);
if (!_my_tls.locals.hostent_buf)
{
+ debug_printf ("name %s", name);
set_winsock_errno ();
set_host_errno ();
}