Created attachment 1401 [details] Forces the openbsd-compat implementation of glob(3). Attached is a patch for building OpenSSH 4.7p1 on Mac OS X. sftp makes certain assumptions about the behavior of glob(3) that no longer hold on Mac OS X. This patch forces the openbsd-compat implementation.
Created attachment 1421 [details] Add BROKEN_GLOB and define in configure for OS X Using the built in globbing is fine, however I would prefer to activate the replacement based on the characteristic not the platform.
Patch #1421 has been applied and will be in the 4.8 release. Thanks.
Fix shipped in 4.9/4.9p1 release.