bugzilla-daemon at mindrot.org
2014-Jul-08 18:33 UTC
[Bug 2254] New: Better error message for globs that have too many results.
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.
bugzilla-daemon at mindrot.org
2014-Jul-09 01:45 UTC
[Bug 2254] Better error message for globs that have too many results.
https://bugzilla.mindrot.org/show_bug.cgi?id=2254
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |2226
Resolution|--- |FIXED
CC| |djm at mindrot.org
Status|NEW |RESOLVED
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Patch applied - thanks! This will be in openssh-6.7
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Oct-07 21:00 UTC
[Bug 2254] Better error message for globs that have too many results.
https://bugzilla.mindrot.org/show_bug.cgi?id=2254
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #2 from Damien Miller <djm at mindrot.org> ---
Close all bugs left open from 6.6 and 6.7 releases.
--
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.