]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: (lsfd) add missing dup2 calls to assign proper file descriptors
authorMasatake YAMATO <yamato@redhat.com>
Sun, 3 Apr 2022 02:19:43 +0000 (11:19 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 3 Apr 2022 02:19:43 +0000 (11:19 +0900)
commit6a2c79e7b0bba255152e9f7e7d110f7e42ea0845
tree67e08f552737bdd6de075d1df243ff98f6e261b4
parenta938f9f0c26cc1a7acb3afc608b00207379889a2
tests: (lsfd) add missing dup2 calls to assign proper file descriptors

Close #1637.

The test cases assumed the file descriptor #3 was not occupied. As
reported in #1637, the assumption was wrong. This new code assigns
the file descriptor #3 explicitly with dup2 as the other test cases
did.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c