[Bug 1230] filename escaping of brackets in sftp
    bugzilla-daemon at bugzilla.mindrot.org 
    bugzilla-daemon at bugzilla.mindrot.org
       
    Sun Jan 20 11:31:14 EST 2008
    
    
  
https://bugzilla.mindrot.org/show_bug.cgi?id=1230
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|bitbucket at mindrot.org       |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at mindrot.org>  2008-01-20 11:31:11 ---
Created an attachment (id=1445)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1445)
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.
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
    
    
More information about the openssh-bugs
mailing list