https://bugzilla.mindrot.org/show_bug.cgi?id=3069
Bug ID: 3069
Summary: sftp issues with [ or ] in path name
Product: Portable OpenSSH
Version: 8.0p1
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: sftp
Assignee: [email protected]
Reporter: [email protected]
openssh portable 8.0p1-4 from debian/ubuntu
Hi,
sftp can't fetch files that are inside a directory with [ or ]
characters. It can "cd" just fine into them, but fetching the file
fails:
$ sftp squid-ds216.lxd
Connected to squid-ds216.lxd.
sftp> ls -l
drwxrwxr-x 2 ubuntu ubuntu 3 Sep 10 13:21 [pub]
drwxr-xr-x 2 ubuntu ubuntu 2 Sep 5 20:40 bzr
sftp> cd \[pub\]
sftp> ls -l
-rw-rw-r-- 1 ubuntu ubuntu 12 Sep 10 13:21 hello.txt
sftp> get hello.txt
File "/home/ubuntu/[pub]/hello.txt" not found.
$ ssh squid-ds216.lxd
...
$ ls -lad \[pub\]
drwxrwxr-x 2 ubuntu ubuntu 3 Sep 10 13:21 '[pub]'
$ cd \[pub\]/
$ ls -la
total 10
drwxrwxr-x 2 ubuntu ubuntu 3 Sep 10 13:21 .
drwxr-xr-x 7 ubuntu ubuntu 17 Sep 10 13:21 ..
-rw-rw-r-- 1 ubuntu ubuntu 12 Sep 10 13:21 hello.txt
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs