Bug 1407

Summary: A patch for forcing openbsd-compat implementation of glob(3) on Mac OS X
Product: Portable OpenSSH Reporter: Disco Vince Giffin <vgiffin>
Component: sftpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: dtucker
Priority: P2    
Version: 4.7p1   
Hardware: Other   
OS: Mac OS X   
Bug Depends on:    
Bug Blocks: 1353    
Attachments:
Description Flags
Forces the openbsd-compat implementation of glob(3).
none
Add BROKEN_GLOB and define in configure for OS X dtucker: ok?

Description Disco Vince Giffin 2007-12-21 13:24:05 AEDT
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.
Comment 1 Darren Tucker 2007-12-21 21:20:55 AEDT
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.
Comment 2 Darren Tucker 2007-12-31 21:30:22 AEDT
Patch #1421 has been applied and will be in the 4.8 release.  Thanks.
Comment 3 Damien Miller 2008-03-31 15:23:07 AEDT
Fix shipped in 4.9/4.9p1 release.