[Bug 1230] filename escaping of brackets in sftp

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Sep 16 21:50:39 EST 2006


http://bugzilla.mindrot.org/show_bug.cgi?id=1230

           Summary: filename escaping of brackets in sftp
           Product: Portable OpenSSH
           Version: 4.3p2
          Platform: PPC
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sftp
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: duncan2nd at gmx.de


ist's impossible to escape a filename that contains brackets ([]) with
quotes for the put command.

Steps to Reproduce:
  1. create a file with filename: [eztv]
  2. try to upload with sftp put

Actual Results:
sftp> lls
[eztv]
sftp> put '[eztv]'
File "[eztv]" not found.
sftp> put "[eztv]"
File "[eztv]" not found.
sftp> put [eztv]
File "[eztv]" not found.
sftp> put \[eztv\]
Uploading [eztv] to /private/tmp/[eztv]
[eztv]                                                        100%    4
    0.0KB/s   00:00    
sftp> put \[abcdefg\]
File "\\[abcdefg\\]" not found.

Expected Results: 
 the first 3 commands should work and react the same way
 the 4. command may work??
 the 5. command may emit: File "[abcdefg]" not found.  

Occurs on:
- OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
  Mac OS X 10.4.7 (PowerPC)
- OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
   Linux octopus 2.6.17-1.2157_FC5smp #1 SMP Tue Jul 11 23:24:16 EDT
2006 i686 i686 i386 GNU/Linux
- OpenSSH_4.3p2, OpenSSL 0.9.7i 14 Oct 2005
   Mac OS X 10.4.7 (PowerPC)

Additional information:
- It seems to be impossible to use a filename that contains brackets
AND spaces e.g. [ez tv]
- this bug is relevant, because some guis use sftp. e.g. Fugu 1.2.0 
   http://rsug.itd.umich.edu/software/fugu/




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-bugs mailing list