bugzilla-daemon at bugzilla.mindrot.org
2010-Jul-09  21:42 UTC
[Bug 1792] New: Unable to "ls" within a directory with special characters "[" or "]"
https://bugzilla.mindrot.org/show_bug.cgi?id=1792
           Summary: Unable to "ls" within a directory with special
                    characters "[" or "]"
           Product: Portable OpenSSH
           Version: 5.5p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sftp
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: sftpbug at mailinator.com
Unable to "ls" within a directory with special characters
"[" or "]"
Issue appears as follows once connected to remote SFTP server:
sftp> pwd
Remote working directory: /foo
sftp> ls
directory [one]
sftp> cd directory\ [one]
sftp> pwd
Remote working directory: /foo/directory [one]
sftp> ls
Can't ls: "/foo/directory [one]" not found
However, the client is freely able to list the directory contents when
outside the directory that contains the special characters: "[" and/or
"]" 
sftp> ls "/foo/directory [one]" 
Successful.
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Jul-19  03:55 UTC
[Bug 1792] Unable to "ls" within a directory with special characters "[" or "]"
https://bugzilla.mindrot.org/show_bug.cgi?id=1792
Darren Tucker <dtucker at zip.com.au> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at zip.com.au
--- Comment #1 from Darren Tucker <dtucker at zip.com.au>  ---
What platform is this?  I can't reproduce the problem on either OpenBSD
or Fedora.
$ cd /tmp
$ mkdir directory\ [one]
$ cd directory\ \[one\]/
$ touch bar
$ sftp localhost
Connected to localhost.
sftp> cd /tmp/directory\ [one]/
sftp> pwd
Remote working directory: /tmp/directory [one]
sftp> ls
bar  
sftp> 
A couple of things you can try:
./configure --with-cflags=-DBROKEN_REALPATH
./configure --with-cflags=-DBROKEN_GLOB
and see if either of these makes the problem go away.
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Jul-22  00:16 UTC
[Bug 1792] Unable to "ls" within a directory with special characters "[" or "]"
https://bugzilla.mindrot.org/show_bug.cgi?id=1792 --- Comment #2 from sftpbug at mailinator.com --- OS-X Snow Leopard 10.6.4 SSH Version Info: OpenSSH_5.5p1, OpenSSL 0.9.8l 5 Nov 2009 Issue persists with re-compiling using ./configure flags. (In reply to comment #1)> What platform is this? I can't reproduce the problem on either OpenBSD > or Fedora. > > $ cd /tmp > $ mkdir directory\ [one] > $ cd directory\ \[one\]/ > $ touch bar > $ sftp localhost > Connected to localhost. > sftp> cd /tmp/directory\ [one]/ > sftp> pwd > Remote working directory: /tmp/directory [one] > sftp> ls > bar > sftp> > > A couple of things you can try: > > ./configure --with-cflags=-DBROKEN_REALPATH > > ./configure --with-cflags=-DBROKEN_GLOB > > and see if either of these makes the problem go away.-- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Jul-22  05:38 UTC
[Bug 1792] Unable to "ls" within a directory with special characters "[" or "]"
https://bugzilla.mindrot.org/show_bug.cgi?id=1792 --- Comment #3 from Darren Tucker <dtucker at zip.com.au> --- (In reply to comment #2)> OS-X Snow Leopard 10.6.4OK, I can reproduce it with 5.5p1, but I think it's since been fixed (bug #1655). Please try a snapshot http://www.mindrot.org/openssh_snap/ -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Aug-27  00:24 UTC
[Bug 1792] Unable to "ls" within a directory with special characters "[" or "]"
https://bugzilla.mindrot.org/show_bug.cgi?id=1792
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org
             Blocks|                            |1803
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Nov-04  23:55 UTC
[Bug 1792] Unable to "ls" within a directory with special characters "[" or "]"
https://bugzilla.mindrot.org/show_bug.cgi?id=1792
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
--- Comment #4 from Damien Miller <djm at mindrot.org> 2010-11-05 10:55:07
EST ---
I can't elicit this in -current.
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Jan-24  01:34 UTC
[Bug 1792] Unable to "ls" within a directory with special characters "[" or "]"
https://bugzilla.mindrot.org/show_bug.cgi?id=1792
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
--- Comment #5 from Damien Miller <djm at mindrot.org> 2011-01-24 12:34:03
EST ---
Move resolved bugs to CLOSED after 5.7 release
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
Maybe Matching Threads
- [Bug 1767] New: Inconsistend wildcard expansion in 'ls *'
- [Bug 2048] New: Make chrooted sftp more user friendly using bind mount (solution suggested)
- internal-sftp stuck on 'ls' with chrootdirectory
- [Bug 1935] New: ls -l with wildcards produces incorrect output
- [Bug 1573] New: ls hangs in internal-sftp