when restoring non-blocking mode to stdio fds, restore exactly
authordjm <djm@openbsd.org>
Wed, 18 Jan 2023 02:00:10 +0000 (02:00 +0000)
committerdjm <djm@openbsd.org>
Wed, 18 Jan 2023 02:00:10 +0000 (02:00 +0000)
commita35e5d1461f6dceeea514e2b986315b1eea5e532
tree52179ec843efefd73376830d9add3b84461dacdf
parent93d238a680d0feb51e38ed3da3ea5e9a4d10ace0
when restoring non-blocking mode to stdio fds, restore exactly
the flags that ssh started with and don't just clobber them with
zero, as this could also remove the append flag from the set;

bz3523; ok dtucker@
usr.bin/ssh/channels.c
usr.bin/ssh/channels.h