gnutls-cli in pipes messes up the i/o stream
I recently added gnutls-cli support to the rsync-ssl wrapper script but gnutls-cli turns out to mess up the i/o stream.
To show you the effect I attach the rsync-ssl script.
If you run it like
./rsync-ssl --type=gnutls -ai download.samba.org::gnokii /tmp/testdir/
You will probably see already letters from the rsync welcome banner be scrambled. Later on the rsync protocol stream will break.
If you run the same command with --type=openssl then there will be no error. Is there some blocking I/O issue with gnutls-cli in terminal mode?