From fad0fe1d20dcebd93def46dab33560a3d01a3110 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Fri, 8 Jan 2010 23:29:17 +0100 Subject: [PATCH] lib/dup2.c (rpl_dup2): Improve comment. (cherry picked from commit 581419c98c50af5daefcbb07ca1cbc16539db072) --- ChangeLog | 4 ++++ lib/dup2.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dc7776eab..c87f0dcc0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-01-08 Simon Josefsson + + * lib/dup2.c (rpl_dup2): Improve comment. + 2010-01-08 Eric Blake dup2: work around mingw bug diff --git a/lib/dup2.c b/lib/dup2.c index 9b6a8f632..a4422bf3b 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; -- 2.11.0