sftp cannot get filenames with "[" and "]" whith space between
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
sftp cannot get a filename named "South Park - 10x08 - Make Love, Not Warcraft [ Subtitulado.
sftp shows error when file with filename has "[" "]" character (with a space or more between):
File [...] not found.
But sftp's remote renaming, moving, and more still working.
Commands used:
$: sftp user@192.168.1.35
sftp> get "South Park - 10x08 - Make Love, Not Warcraft [ Subtitulado.
File "/home/user/South Park - 10x08 - Make Love, Not Warcraft [ Subtitulado.
sftp> rename "South Park - 10x08 - Make Love, Not Warcraft [ Subtitulado.
sftp> get "South Park - 10x08 - Make Love, Not Warcraft [ Subtitulado.
(And works!)
Note: Renaming to "South Park - 10x08 - Make Love, Not Warcraft [ Subtitulado.
EDITED:
very confusing:
I've renamed some files for testing and...
sftp> get "selene ]"
Fetching /home/mluser/selene ] to selene ]
/home/mluser/selene ] 100% 53 0.1KB/s 00:00
sftp> get "selene [ ]"
File "/home/
sftp> ls -1
incoming
selene , . [ ]
selene , [ ]
selene [
selene [ ]
selene ]
selene[
selene[]
selene]
selenedb
share.tar.gz
so "selene [ ]" exists!
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
and getting "selene[]" (whithout spaces) works too. selene[ ] to selene[] selene[ ] 100% 53 0.1KB/s 00:00
sftp> get "selene[]"
Fetching /home/mluser/
/home/mluser/