From: Simon Josefsson <simon@josefsson.org>
Date: Fri, 8 Jan 2010 22:29:17 +0000 (+0100)
Subject: lib/dup2.c (rpl_dup2): Improve comment.
X-Git-Tag: v0.1~4880
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=581419c98c50af5daefcbb07ca1cbc16539db072;p=gnulib.git

lib/dup2.c (rpl_dup2): Improve comment.
---

diff --git a/ChangeLog b/ChangeLog
index b1d9a6a798..4d4137ed42 100644
--- 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>
 
 	maint.mk: allow packages to add makefile @@ exceptions
diff --git a/lib/dup2.c b/lib/dup2.c
index 9b6a8f6321..a4422bf3b8 100644
--- 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;