projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab4aa9
)
Fix for bug #645, correct path handling logic so that it works from sshfs
author
Alberto Berti
<alberto@metapensiero.it>
Thu, 26 Feb 2009 16:02:37 +0000
(09:02 -0700)
committer
Alberto Berti
<alberto@metapensiero.it>
Thu, 26 Feb 2009 16:02:37 +0000
(09:02 -0700)
src/allmydata/frontends/sftpd.py
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/sftpd.py
b/src/allmydata/frontends/sftpd.py
index aa15bbba7db5f1f66974a0fdbd7155d769a8600f..3e5a55e9871ba96fbcc7f878c6321406b36b11be 100644
(file)
--- 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("/")