* dtable.cc (dup2): Correct return value for no-op.
This commit is contained in:
parent
3a88eb1446
commit
a7b11fec84
@ -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>
|
||||
|
||||
|
@ -621,7 +621,7 @@ dtable::dup2 (int oldfd, int newfd)
|
||||
|
||||
if (newfd == oldfd)
|
||||
{
|
||||
res = 0;
|
||||
res = newfd;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user