summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2007-12-31 21:29:26 +1100
committerDarren Tucker <dtucker@zip.com.au>2007-12-31 21:29:26 +1100
commit528d6fa10afce818b794eb73c8e3693ac5d2c493 (patch)
tree13711f594511454f9a3ee2af5ea2a110d2cc5ed4
parent5baa170d771de9e95cf30b4c469ece684244cf3e (diff)
- (dtucker) [configure.ac openbsd-compat/glob.{c,h}] Bug #1407: force use of
builtin glob implementation on Mac OS X. Based on a patch from vgiffin at apple.
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac5
-rw-r--r--openbsd-compat/glob.c3
-rw-r--r--openbsd-compat/glob.h3
4 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index b32b72157..2f51c21e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120071231
2 - (dtucker) [configure.ac openbsd-compat/glob.{c,h}] Bug #1407: force use of
3 builtin glob implementation on Mac OS X. Based on a patch from
4 vgiffin at apple.
5
120071229 620071229
2 - (dtucker) OpenBSD CVS Sync 7 - (dtucker) OpenBSD CVS Sync
3 - djm@cvs.openbsd.org 2007/12/12 05:04:03 8 - djm@cvs.openbsd.org 2007/12/12 05:04:03
@@ -3482,4 +3487,4 @@
3482 OpenServer 6 and add osr5bigcrypt support so when someone migrates 3487 OpenServer 6 and add osr5bigcrypt support so when someone migrates
3483 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 3488 passwords between UnixWare and OpenServer they will still work. OK dtucker@
3484 3489
3485$Id: ChangeLog,v 1.4810 2007/12/28 22:37:10 dtucker Exp $ 3490$Id: ChangeLog,v 1.4811 2007/12/31 10:29:26 dtucker Exp $
diff --git a/configure.ac b/configure.ac
index c9bce0199..479d62820 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.387 2007/12/02 10:02:22 dtucker Exp $ 1# $Id: configure.ac,v 1.388 2007/12/31 10:29:26 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -15,7 +15,7 @@
15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 16
17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) 17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
18AC_REVISION($Revision: 1.387 $) 18AC_REVISION($Revision: 1.388 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20 20
21AC_CONFIG_HEADER(config.h) 21AC_CONFIG_HEADER(config.h)
@@ -415,6 +415,7 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
415 AC_DEFINE(SETEUID_BREAKS_SETUID) 415 AC_DEFINE(SETEUID_BREAKS_SETUID)
416 AC_DEFINE(BROKEN_SETREUID) 416 AC_DEFINE(BROKEN_SETREUID)
417 AC_DEFINE(BROKEN_SETREGID) 417 AC_DEFINE(BROKEN_SETREGID)
418 AC_DEFINE(BROKEN_GLOB, 1, [OS X glob does not do what we expect])
418 AC_DEFINE_UNQUOTED(BIND_8_COMPAT, 1, 419 AC_DEFINE_UNQUOTED(BIND_8_COMPAT, 1,
419 [Define if your resolver libs need this for getrrsetbyname]) 420 [Define if your resolver libs need this for getrrsetbyname])
420 AC_DEFINE(SSH_TUN_FREEBSD, 1, [Open tunnel devices the FreeBSD way]) 421 AC_DEFINE(SSH_TUN_FREEBSD, 1, [Open tunnel devices the FreeBSD way])
diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c
index 6489ea936..74b506403 100644
--- a/openbsd-compat/glob.c
+++ b/openbsd-compat/glob.c
@@ -48,7 +48,8 @@
48 48
49#if !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC) || \ 49#if !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC) || \
50 !defined(GLOB_HAS_GL_MATCHC) || \ 50 !defined(GLOB_HAS_GL_MATCHC) || \
51 !defined(HAVE_DECL_GLOB_NOMATCH) || HAVE_DECL_GLOB_NOMATCH == 0 51 !defined(HAVE_DECL_GLOB_NOMATCH) || HAVE_DECL_GLOB_NOMATCH == 0 || \
52 defined(BROKEN_GLOB)
52 53
53static long 54static long
54get_arg_max(void) 55get_arg_max(void)
diff --git a/openbsd-compat/glob.h b/openbsd-compat/glob.h
index 9f53f7a21..a2b36f974 100644
--- a/openbsd-compat/glob.h
+++ b/openbsd-compat/glob.h
@@ -39,7 +39,8 @@
39 39
40#if !defined(HAVE_GLOB_H) || !defined(GLOB_HAS_ALTDIRFUNC) || \ 40#if !defined(HAVE_GLOB_H) || !defined(GLOB_HAS_ALTDIRFUNC) || \
41 !defined(GLOB_HAS_GL_MATCHC) || \ 41 !defined(GLOB_HAS_GL_MATCHC) || \
42 !defined(HAVE_DECL_GLOB_NOMATCH) || HAVE_DECL_GLOB_NOMATCH == 0 42 !defined(HAVE_DECL_GLOB_NOMATCH) || HAVE_DECL_GLOB_NOMATCH == 0 || \
43 defined(BROKEN_GLOB)
43 44
44#ifndef _GLOB_H_ 45#ifndef _GLOB_H_
45#define _GLOB_H_ 46#define _GLOB_H_