| Summary: | filename escaping of brackets in sftp | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Stephan Kleisinger <duncan2nd> | ||||
| Component: | sftp | Assignee: | Damien Miller <djm> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | ||||||
| Priority: | P2 | ||||||
| Version: | 4.3p2 | ||||||
| Hardware: | PPC | ||||||
| OS: | Mac OS X | ||||||
| Attachments: |
|
||||||
|
Description
Stephan Kleisinger
2006-09-16 21:50:37 AEST
Created attachment 1445 [details]
process_put: check pathname even if glob does not match
The recently committed argument parser changes together with this additional patch make all your test cases pass:
sftp> put '[eztv]'
Uploading [eztv] to /tmp/xxxx/[eztv]
[eztv] 100% 0 0.0KB/s 00:00
sftp> put "[eztv]"
Uploading [eztv] to /tmp/xxxx/[eztv]
[eztv] 100% 0 0.0KB/s 00:00
sftp> put [eztv]
Uploading [eztv] to /tmp/xxxx/[eztv]
[eztv] 100% 0 0.0KB/s 00:00
sftp> put \[eztv\]
Uploading [eztv] to /tmp/xxxx/[eztv]
[eztv] 100% 0 0.0KB/s 00:00
sftp> put \[abcdefg\]
stat [abcdefg]: No such file or directory
I'll apply this fix now, so it will be in OpenSSH 4.8. Thanks indeed for the detailed bug report and test cases.
fix applied Close resolved bugs after release. |