* 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

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