[Bug 2254] New: Better error message for globs that have too many results.

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Jul 9 04:33:42 EST 2014


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

            Bug ID: 2254
           Summary: Better error message for globs that have too many
                    results.
           Product: Portable OpenSSH
           Version: 6.6p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sftp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: orion at cora.nwra.com

Created attachment 2454
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2454&action=edit
Patch to detect GLOB_NOSPACE and return better error message

sftp uses remote_glob() with ls and get, which sets GLOB_LIMIT, so it
is possible that a "get a*" command could exhaust the default limit. 
In this case you get the unhelpful error message:

sftp> get ssw*
File "/data/cora1/leka/AIA/ssw*" not found.

With the attached patch you get a better error message:

sftp> get ssw*
Too many matches for "/data/cora1/leka/AIA/ssw*".
sftp> ls ssw*
Can't ls: Too many matches for "/data/cora1/leka/AIA/ssw*"

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list