1 | Sun Feb 7 01:28:02 GMT Standard Time 2010 david-sarah@jacaranda.org |
---|
2 | * Corrected potential fix for sftpd path handling (ticket #645) |
---|
3 | diff -rN -u old-tahoe/src/allmydata/frontends/sftpd.py new-tahoe/src/allmydata/frontends/sftpd.py |
---|
4 | --- old-tahoe/src/allmydata/frontends/sftpd.py 2010-02-07 01:32:00.579000000 +0000 |
---|
5 | +++ new-tahoe/src/allmydata/frontends/sftpd.py 2010-02-07 01:32:03.936000000 +0000 |
---|
6 | @@ -292,14 +292,14 @@ |
---|
7 | return d |
---|
8 | |
---|
9 | def _convert_sftp_path(self, pathstring): |
---|
10 | - assert pathstring[0] == "/" |
---|
11 | + print "CONVERT", pathstring |
---|
12 | pathstring = pathstring.strip("/") |
---|
13 | - if pathstring == "": |
---|
14 | + if pathstring == "" or pathstring == ".": |
---|
15 | path = [] |
---|
16 | else: |
---|
17 | path = pathstring.split("/") |
---|
18 | - print "CONVERT", pathstring, path |
---|
19 | path = [unicode(p) for p in path] |
---|
20 | + print " PATH", path |
---|
21 | return path |
---|
22 | |
---|
23 | def _get_node_and_metadata_for_path(self, path): |
---|