summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-02-23 19:35:41 +0000
committerLars Wirzenius <liw@liw.fi>2013-02-23 19:35:41 +0000
commitd1521cfa06653251896130388a7c896f7cf02079 (patch)
tree1ef3239d8b9d8716412760724b7a43488382f150
parent00c58746fe0f2f69858907038c573e540d484f83 (diff)
parenta51f7a5669ad7c624b63559ab01250ceaf1a80f1 (diff)
downloadobnam-d1521cfa06653251896130388a7c896f7cf02079.tar.gz
Merge fix for old paramiko SFTP chdir bug
-rw-r--r--NEWS1
-rw-r--r--obnamlib/plugins/sftp_plugin.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b0630a81..80b99fda 100644
--- a/NEWS
+++ b/NEWS
@@ -43,6 +43,7 @@ Bug fixes:
David Fries.
* Only set ssh user/port if explicitily requested, otherwise let ssh
select them. Reported by Michael Goetze, fixed by David Fries.
+* Fix problem with old version of paramiko and chdir. Fixed by Nick Altmann.
Version 1.3, released 2012-12-16
--------------------------------
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)