the fix for ANT-2026-KVP4Z2O3 added some paranoia for paths returned
from the server but it missed that, under some circumstances, the
returned path goes via glob(3). Escape it beforehand.
the fix for ANT-2026-P86OLVI7 reserved 32 fds that would not be used
by forwardings, but it neglected the fact that agent forwardings are
created outside the channels code and also consume fds. Reuse the
same machinery to ensure they are accounted for too
there are some cases where we can't track the lifecycle of the
fork()ed ProxyCommand, e.g. when we've done a ControlPersist detach
or if we do a ~^Z background operations. In both these cases ssh(1)
is no longer the parent of the ProxyCommand and so can't see its
SIGCHLD to get a reliable notification of it exiting.
So let's not try to kill(2) the ProxyCommand on these paths, in case
it has already exited and its PID has been recycled.
Followup to the ANT-2026-ODQD8QBH fix