OSDN Git Service

* fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already
authorcgf <cgf>
Sat, 27 Mar 2004 18:01:04 +0000 (18:01 +0000)
committercgf <cgf>
Sat, 27 Mar 2004 18:01:04 +0000 (18:01 +0000)
been set if pc.error is nonzero.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_nodevice.cc

index a7e3486..5da98a5 100644 (file)
@@ -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.
index d27747b..c23e443 100644 (file)
@@ -31,7 +31,8 @@ details. */
 int
 fhandler_nodevice::open (int, mode_t)
 {
-  set_errno (ENXIO);
+  if (!pc.error)
+    set_errno (ENXIO);
   return 0;
 }