dup2: work around mingw bug dup2 (fd, -2) returned -2 instead of the proper -1. * lib/dup2.c (rpl_dup2): Sanitize return value on mingw. Reported by Simon Josefsson. Signed-off-by: Eric Blake <ebb9@byu.net>