[paramiko] path expanded twice in client.py

Robey Pointer robey at lag.net
Sat Dec 16 17:17:44 PST 2006


On 2 Dec 2006, at 17:45, james bardin wrote:

> Hi,
>
> just noticed that ~/.ssh is expanded  and prefixed twice when looking
> for keys in client.py
> easy fix:
>
> --- paramiko/client.py  2006-11-24 12:11:36.000000000 -0500
> +++ paramiko/client.py  2006-12-02 20:28:37.806657889 -0500
> @@ -382,7 +382,6 @@
>          if os.path.isfile(dsa_key):
>              keyfiles.append((DSSKey, dss_key))
>          for pkey_class, filename in keyfiles:
> -            filename = os.path.expanduser('~/.ssh/' + filename)
>              try:
>                  key = pkey_class.from_private_key_file(filename,  
> password)
>                  self._log(DEBUG, 'Trying discovered key %s in %s' %
> (hexlify(key.get_fingerprint()), filename))

I think you're right -- thanks!

robey




More information about the paramiko mailing list