Use Dup2 library function instead of raw syscall
Use Dup2 library function instead of raw syscall

The Dup2 syscall does not exist on 64-bit arm Linux while its
replacement Dup3 does not exist on non-Linux systems.

Using the unix.Dup2 library function instead of raw syscalls
improves the portability across more platforms.

jackschmidt/rclone,kynikos/rclone,olihey/rclone,B4dM4n/rclone,kynikos/rclone,B4dM4n/rclone,arcimboldo/rclone,ncw/rclone,ncw/rclone,yonjah/rclone,olihey/rclone,arcimboldo/rclone,ncw/rclone,olihey/rclone,yonjah/rclone,kynikos/rclone,arcimboldo/rclone,yonjah/rclone,B4dM4n/rclone,seuffert/rclone,olihey/rclone,seuffert/rclone,kynikos/rclone,seuffert/rclone,jackschmidt/rclone,yonjah/rclone,B4dM4n/rclone,arcimboldo/rclone,ncw/rclone,seuffert/rclone,jackschmidt/rclone,jackschmidt/rclone