Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-11-25 05:03:17 +0300
committerChristopher Faylor <me@cgf.cx>2003-11-25 05:03:17 +0300
commite00700cd80a429eb0abf19154b33e0508590216d (patch)
treef5d33bfa307dcbf3b798446178913acacbf1ed0f /winsup/cygwin/dtable.cc
parent6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a (diff)
* dtable.cc (build_fh_name): Set error in dummy fhandler when one is noted
during path_conv. * fhandler.h (fhandler_base::set_error): New method.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index b2291c7d5..27c543fa4 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -294,8 +294,10 @@ build_fh_name (const char *name, HANDLE h, unsigned opt, suffix_info *si)
path_conv pc (name, opt | PC_NULLEMPTY | PC_FULL | PC_POSIX, si);
if (pc.error)
{
+ fhandler_base *fh = cnew (fhandler_nodevice) ();
+ fh->set_error (pc.error);
set_errno (pc.error);
- return cnew (fhandler_nodevice) ();
+ return fh;
}
if (!pc.exists () && h)