bugzilla-daemon at bugzilla.mindrot.org
2009-Aug-20 03:54 UTC
[Bug 1634] New: [PATCH] openbsd-compat/glob.h conflicts with system glob.h
https://bugzilla.mindrot.org/show_bug.cgi?id=1634 Summary: [PATCH] openbsd-compat/glob.h conflicts with system glob.h Product: Portable OpenSSH Version: 5.2p1 Platform: All OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: Miscellaneous AssignedTo: unassigned-bugs at mindrot.org ReportedBy: opensslbug0lkdsfo8hsd at spock.org --- Comment #0 from Jonathan Chen <opensslbug0lkdsfo8hsd at spock.org> 2009-08-20 13:54:14 EST --- On FreeBSD, openbsd-compat's glob is supposed to be used used instead of the system glob, due to BROKEN_GLOB being set in configure. However, includes.h pulls in the system glob.h nonetheless, resulting in divergent glob_t definitions within openssh. On FreeBSD, this can manifest as sftp throwing a SIGBUS when a directory listing is requested. The trivial patch below fixes the problem. --- includes.h~ 2009-08-19 23:32:26.000000000 -0400 +++ includes.h 2009-08-19 23:32:53.000000000 -0400 @@ -31,7 +31,8 @@ #endif #if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \ defined(GLOB_HAS_GL_MATCHC) && \ - defined(HAVE_DECL_GLOB_NOMATCH) && HAVE_DECL_GLOB_NOMATCH != 0 + defined(HAVE_DECL_GLOB_NOMATCH) && HAVE_DECL_GLOB_NOMATCH != 0 &&\ + !defined(BROKEN_GLOB) # include <glob.h> #endif #ifdef HAVE_ENDIAN_H -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2009-Aug-20 06:16 UTC
[Bug 1634] [PATCH] openbsd-compat/glob.h conflicts with system glob.h
https://bugzilla.mindrot.org/show_bug.cgi?id=1634 Darren Tucker <dtucker at zip.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dtucker at zip.com.au Blocks| |1560 Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Darren Tucker <dtucker at zip.com.au> 2009-08-20 16:16:38 EST --- Applied, thanks. This will be in the 5.3p1 release. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Oct-06 04:02 UTC
[Bug 1634] [PATCH] openbsd-compat/glob.h conflicts with system glob.h
https://bugzilla.mindrot.org/show_bug.cgi?id=1634 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Damien Miller <djm at mindrot.org> 2009-10-06 15:02:04 EST --- Mass move of RESOLVED bugs to CLOSED now that 5.3 is out. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- 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.
Reasonably Related Threads
- [2.5.2p1] openbsd-compat/glob.c: ARG_MAX not defined, alternative
- [Bug 2463] New: Conflict with openbsd compat glob() function in shared libraries
- ssh hangs or gives Segmentation fault
- sftp client globbing problems on Solaris, Irix, etc
- Joining Samba 3.0.0 to Windows 2000 domain