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
parent82b78005eb29432f1b924bcfd56c81e6dbe6ada7 (diff)
* fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already
been set if pc.error is nonzero.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_nodevice.cc3
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a7e348654..5da98a5fd 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-27 Christopher Faylor <cgf@redhat.com>
+
+ * fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has
+ already been set if pc.error is nonzero.
+
2004-03-26 Christopher Faylor <cgf@redhat.com>
* cygheap.cc (cygheap_fixup_in_child): Improve strace output.
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;
}