lib/dup2.c (rpl_dup2): Improve comment.
authorSimon Josefsson <simon@josefsson.org>
Fri, 8 Jan 2010 22:29:17 +0000 (23:29 +0100)
committerIan Beckwith <ianb@erislabs.net>
Sun, 10 Jan 2010 00:45:35 +0000 (00:45 +0000)
(cherry picked from commit 581419c98c50af5daefcbb07ca1cbc16539db072)

ChangeLog
lib/dup2.c

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
index 9b6a8f6..a4422bf 100644 (file)
@@ -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;