This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bug in dup2


On Jul 21 06:09, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> POSIX requires dup2(1,1) to return 1 (if stdout is open), not 0.  I wonder
> how long that bug has been present?  And the STC:
> 
> #include <unistd.h>
> int main() { return dup2 (1, 1); }
> 
> 2009-07-21  Eric Blake  <ebb9@byu.net>
> 
> 	* dtable.cc (dup2): Correct return value for no-op.

Applied.


Thanks for catching,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]