Switch scp from using pipes to a socketpair for communication with
authormillert <millert@openbsd.org>
Tue, 10 Jan 2023 23:22:15 +0000 (23:22 +0000)
committermillert <millert@openbsd.org>
Tue, 10 Jan 2023 23:22:15 +0000 (23:22 +0000)
commit0903cde6a22bc25f089d23dd1d3806894b9b558b
tree08baea81a00b707e286f156ef8ec790025d77bcc
parentbd4c0be29053b4f65e0a4d68e64ca46c5edc0809
Switch scp from using pipes to a socketpair for communication with
it's ssh sub-processes.  We no longer need to reserve two descriptors
to ensure that we don't end up using fd 0-2 unexpectedly, that is
handled by sanitise_stdfd() in main().
Based on an original diff from djm@.  OK deraadt@ djm@
usr.bin/ssh/scp.c