From 3035dfb8ed70ae4b4071c5e356ff2faf62f6497f Mon Sep 17 00:00:00 2001
From: Alberto Berti <alberto@metapensiero.it>
Date: Thu, 26 Feb 2009 09:02:37 -0700
Subject: [PATCH] Fix for bug #645, correct path handling logic so that it
 works from sshfs

---
 src/allmydata/frontends/sftpd.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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("/")
-- 
2.45.2