make sure that dup doesn't remove legitimate FDs