From ac5e21b028491e4ed03aa606113c97cea27a0b53 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 30 May 2005 18:20:28 +0000 Subject: [PATCH] * dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/dlfcn.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b201c393b..4e0e50751 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2005-05-30 Christopher Faylor + + * dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error. + 2005-05-29 Christopher Faylor * cygmagic: Remove debugging cruft missed on 2005-05-21. diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc index fc43ed38f..23e4aed05 100644 --- a/winsup/cygwin/dlfcn.cc +++ b/winsup/cygwin/dlfcn.cc @@ -27,7 +27,7 @@ details. */ static void __stdcall set_dl_error (const char *str) { - __small_sprintf (_my_tls.locals.dl_buffer, "%s, %E", str); + strcpy (_my_tls.locals.dl_buffer, strerror (get_errno ())); _my_tls.locals.dl_error = 1; }