Handles returned by ssh_tunnel_open() and ssh_proxy_open() are base64
encoded using the base64 commandline tool. However, base64 inserts line
breaks into long outputs, causing line breaks to be inserted into long
handles, and the returned handles to become unusable.
This commit changes the parameters passed tp base64 so that no line
breaks are inserted into the handles.
local handle
- if ! handle=$(base64 <<< "$ctrlsock" 2>/dev/null); then
+ if ! handle=$(base64 -w 0 <<< "$ctrlsock" 2>/dev/null); then
return 1
fi
handle+=":"
- if ! handle+=$(base64 <<< "$hostspec" 2>/dev/null); then
+ if ! handle+=$(base64 -w 0 <<< "$hostspec" 2>/dev/null); then
return 1
fi