[MERGE] Fix for #107593 (bzr unable to ask password with plink)

Dmitry Vasiliev dima at hlabs.spb.ru
Thu Feb 7 18:46:23 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I was tried to solve this problem a few times but all solutions were
over complicated. One of the possible solutions is to run 'plink.exe -v'
and monitor all its input and output to catch possible password prompts.
But then I've realized that I was tried to solve a wrong problem. Now I
think the right problem is not try to monitor all plink's dialogs for
possible password prompts (I believe it's not possible to do reliable)
but just print the right error in case of the problem.

The attached patch adds '-batch' option to plink and now plink closes
the pipe if unable to open ssh connection and standard connection error
can be reported.

- --
Dmitry Vasiliev <dima at hlabs.spb.ru>
http://hlabs.spb.ru
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHq1H/QgKQGbus+5wRAo/SAJ9pr01UcGZcyBYWtOOdNNhtFl4WwgCfUaHV
x5e942cyhFEZ5FqXYPPqOwU=
=mk89
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: plink.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20080207/d48f74fc/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plink.patch.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080207/d48f74fc/attachment.obj 


More information about the bazaar mailing list