From: Alberto Berti Date: Thu, 26 Feb 2009 16:02:37 +0000 (-0700) Subject: Fix for bug #645, correct path handling logic so that it works from sshfs X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer?a=commitdiff_plain;h=3035dfb8ed70ae4b4071c5e356ff2faf62f6497f;p=tahoe-lafs%2Ftahoe-lafs.git Fix for bug #645, correct path handling logic so that it works from sshfs --- diff --git a/src/allmydata/frontends/sftpd.py b/src/allmydata/frontends/sftpd.py index aa15bbba..3e5a55e9 100644 --- a/src/allmydata/frontends/sftpd.py +++ b/src/allmydata/frontends/sftpd.py @@ -314,9 +314,8 @@ class SFTPHandler: return d def _convert_sftp_path(self, pathstring): - assert pathstring[0] == "/" pathstring = pathstring.strip("/") - if pathstring == "": + if pathstring == "" or ".": path = [] else: path = pathstring.split("/")