Created attachment 2454 [details] 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*"
Patch applied - thanks! This will be in openssh-6.7
Close all bugs left open from 6.6 and 6.7 releases.