projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for module 'unistr/u32-cmp2'.
[gnulib.git]
/
lib
/
dup2.c
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;
}
}
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;
if (desired_fd < 0)
{
errno = EBADF;