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>2004-03-27 21:01:04 +0300
committerChristopher Faylor <me@cgf.cx>2004-03-27 21:01:04 +0300
commitf19da5f77d0a7212f0767d1e2a07c54ccdb8acd8 (patch)
treed05a323baec29137591abd34b103228c8f0fb6f5 /winsup/cygwin/fhandler_nodevice.cc
parent82b78005eb29432f1b924bcfd56c81e6dbe6ada7 (diff)
* fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already
been set if pc.error is nonzero.
Diffstat (limited to 'winsup/cygwin/fhandler_nodevice.cc')
-rw-r--r--winsup/cygwin/fhandler_nodevice.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_nodevice.cc b/winsup/cygwin/fhandler_nodevice.cc
index d27747bb5..c23e4434b 100644
--- a/winsup/cygwin/fhandler_nodevice.cc
+++ b/winsup/cygwin/fhandler_nodevice.cc
@@ -31,7 +31,8 @@ details. */
int
fhandler_nodevice::open (int, mode_t)
{
- set_errno (ENXIO);
+ if (!pc.error)
+ set_errno (ENXIO);
return 0;
}