[Bug 1655] sftp is unhappy with asterisks in filenames

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Apr 9 12:05:59 EST 2010


https://bugzilla.mindrot.org/show_bug.cgi?id=1655

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org
             Blocks|                            |1708

--- Comment #1 from Damien Miller <djm at mindrot.org> 2010-04-09 12:05:58 EST ---
The problem is here:


  1344        case I_LS:
  1345                if (!path1) {
  1346                        do_globbed_ls(conn, *pwd, *pwd, lflag);
  1347                        break;
  1348                }
  1349  
  1350                /* Strip pwd off beginning of non-absolute paths
*/
  1351                tmp = NULL;
  1352                if (*path1 != '/')
  1353                        tmp = *pwd;
  1354  
  1355                path1 = make_absolute(path1, *pwd);
  1356                err = do_globbed_ls(conn, path1, tmp, lflag);
  1357                break;

I think we need to glob-escape the pwd before calling do_globbed_ls().
There might be other instances of this bug in sftp too.

-- 
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.


More information about the openssh-bugs mailing list