projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b0ac4a
)
lib/dup2.c (rpl_dup2): Improve comment.
author
Simon Josefsson
<simon@josefsson.org>
Fri, 8 Jan 2010 22:29:17 +0000
(23:29 +0100)
committer
Ian Beckwith
<ianb@erislabs.net>
Sun, 10 Jan 2010 00:45:35 +0000
(
00:45
+0000)
(cherry picked from commit
581419c98c50af5daefcbb07ca1cbc16539db072
)
ChangeLog
patch
|
blob
|
history
lib/dup2.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
dc7776e
..
c87f0dc
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,7
@@
+2010-01-08 Simon Josefsson <simon@josefsson.org>
+
+ * lib/dup2.c (rpl_dup2): Improve comment.
+
2010-01-08 Eric Blake <ebb9@byu.net>
dup2: work around mingw bug
diff --git
a/lib/dup2.c
b/lib/dup2.c
index
9b6a8f6
..
a4422bf
100644
(file)
--- a/
lib/dup2.c
+++ b/
lib/dup2.c
@@
-52,8
+52,8
@@
rpl_dup2 (int fd, int desired_fd)
}
return fd;
}
- /*
Some mingw versions also return the wrong value if desired_fd is
-
negative but not -1.
*/
+ /*
Wine 1.0.1 return 0 when desired_fd is negative but not -1:
+
http://bugs.winehq.org/show_bug.cgi?id=21289
*/
if (desired_fd < 0)
{
errno = EBADF;