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