Comment 3 for bug 1483751

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. I appreciate the quality of this bug report and I'm sure it'll be helpful to others experiencing the same issue.

This is even slightly worse IMHO as it does stripped mapping.
If on a server you have

$ ll \[a\]/ a
'[a]/':
total 8
drwxrwxr-x 2 ubuntu ubuntu 4096 Sep 9 09:51 ./
drwxr-xr-x 9 ubuntu ubuntu 4096 Sep 9 09:51 ../
-rw-rw-r-- 1 ubuntu ubuntu 0 Sep 9 09:51 foo

a:
total 8
drwxrwxr-x 2 ubuntu ubuntu 4096 Sep 9 09:51 ./
drwxr-xr-x 9 ubuntu ubuntu 4096 Sep 9 09:51 ../
-rw-rw-r-- 1 ubuntu ubuntu 0 Sep 9 09:51 foo

And you are in there with sftp and try to get the file from [a] then you will get the "other one".

sftp> pwd
Remote working directory: /home/ubuntu/[a]
sftp> ls
foo
sftp> get foo
Fetching /home/ubuntu/a/foo to foo

Never the less this sounds like an upstream bug/feature-request to me request I'd think.
Well and it sit around without anyone noticing for years :-/
But today is my bug triage duty and I at least want to guide you to the right place :-)

I tried this up to (including) the last version of 8.0p1.
But as much as this seems wrong, this isn't (IMHO) the kind of issue that Ubuntu would develop on its own and keep a delta. After all name/path handling often is security relevant and important for scripts (you'd not want different hosts to behave differently).

The best route to getting it fixed in Ubuntu in this case would be to file an upstream bug if you're able to do that. Otherwise, I'm not sure what we can do directly in Ubuntu to fix the problem.

If you do end up filing an upstream bug, please link to it from here. Thanks!