* dtable.cc (dup2): Correct return value for no-op.

This commit is contained in:
Corinna Vinschen 2009-07-21 13:29:00 +00:00
parent 3a88eb1446
commit a7b11fec84
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-07-21 Eric Blake <ebb9@byu.net>
* dtable.cc (dup2): Correct return value for no-op.
2009-07-21 Corinna Vinschen <corinna@vinschen.de>
Eric Blake <ebb9@byu.net>

View File

@ -621,7 +621,7 @@ dtable::dup2 (int oldfd, int newfd)
if (newfd == oldfd)
{
res = 0;
res = newfd;
goto done;
}