diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-02-23 19:34:59 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-02-23 19:34:59 +0000 |
commit | c803efe87648366cd0529dfc6af77cc4da06d051 (patch) | |
tree | 8960147b5ef39bccf1d04095f5be9e8dbcdc3b78 | |
parent | 00c58746fe0f2f69858907038c573e540d484f83 (diff) | |
download | obnam-c803efe87648366cd0529dfc6af77cc4da06d051.tar.gz |
Do chdir at once after SFTP connection
This fixes a bug in an old paramiko version (used in Fedora),
which would otherwise cause the next call to chdir to return
None.
Fixed-by: Nick Altmann
-rw-r--r-- | obnamlib/plugins/sftp_plugin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/obnamlib/plugins/sftp_plugin.py b/obnamlib/plugins/sftp_plugin.py index 1241a26f..90081c4c 100644 --- a/obnamlib/plugins/sftp_plugin.py +++ b/obnamlib/plugins/sftp_plugin.py @@ -148,6 +148,7 @@ class SftpFS(obnamlib.VirtualFileSystem): self._connect_paramiko() if self.create_path_if_missing: self._create_root_if_missing() + self.chdir(self.path) self._initial_dir = self.getcwd() self.chdir(self.path) |