[prev in list] [next in list] [prev in thread] [next in thread]
List: openssh-bugs
Subject: [Bug 2254] New: Better error message for globs that have too many results.
From: bugzilla-daemon () mindrot ! org
Date: 2014-07-08 18:33:42
Message-ID: bug-2254-705 () https ! bugzilla ! mindrot ! org/
[Download RAW message or body]
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@mindrot.org
Reporter: orion@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic