[PATCH] Re: any more sftp fixes?

John A Meinel john at arbash-meinel.com
Thu Dec 1 03:05:44 GMT 2005


James Henstridge wrote:
> Matthieu Moy wrote:
> 
>> Moreover, in relpath(self, abspath) too, abspath does not necessarily
>> contain a port number, so _split_url might return None for the port.
>> The patch also fixes this by setting the port to 22 in _split_url()
>> instead of _parse_url(). That seems to be sufficient for me.
>>  
>>
> The existing behaviour where self._port is None if no port was set in
> the URL is intentional.  The _paramiko_connect() method should then
> treat a port number of None as 22.  The current bzr.dev tree handles
> this okay:
> 
>             t = paramiko.Transport((self._host, self._port or 22))
> 
> In the non-paramiko case, if the port is None then no port is specified
> on the ssh command line.  Explicitly passing a port number will override
> the setting in ~/.ssh/config (some people run an ssh server on an
> alternative port for some services).
> 
> James.
> 

Yeah, I figured that out late. But this has been corrected.
John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051130/40a504fa/attachment.pgp 


More information about the bazaar mailing list