OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88d48d2
)
* fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already
author
cgf
<cgf>
Sat, 27 Mar 2004 18:01:04 +0000
(18:01 +0000)
committer
cgf
<cgf>
Sat, 27 Mar 2004 18:01:04 +0000
(18:01 +0000)
been set if pc.error is nonzero.
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/fhandler_nodevice.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
a7e3486
..
5da98a5
100644
(file)
--- 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
d27747b
..
c23e443
100644
(file)
--- 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;
}