sys/t/mdup-test.c: Cope with the idea of arguments which aren't fd pairs.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 16 Nov 2018 18:03:38 +0000 (18:03 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 12 Dec 2018 21:53:36 +0000 (21:53 +0000)
commit7ff43cd7273904110681588929bcbad89b28227b
treeaa15f1cfc705c6871b3333b04a428cadb45eaa90
parentd428ae6daae937aec48a56b5c15ed149faa004ff
sys/t/mdup-test.c: Cope with the idea of arguments which aren't fd pairs.

The code used to assume a fixed relationship between command-line
argument indices and indices in the `mdup_fd' table.  Fix this by
introducing separate index variables in the argument-parsing loop, and
set the table length correctly afterwards.
sys/t/mdup-test.c