diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-12-31 21:29:26 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-12-31 21:29:26 +1100 |
commit | 528d6fa10afce818b794eb73c8e3693ac5d2c493 (patch) | |
tree | 13711f594511454f9a3ee2af5ea2a110d2cc5ed4 | |
parent | 5baa170d771de9e95cf30b4c469ece684244cf3e (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-- | ChangeLog | 7 | ||||
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | openbsd-compat/glob.c | 3 | ||||
-rw-r--r-- | openbsd-compat/glob.h | 3 |
4 files changed, 13 insertions, 5 deletions
@@ -1,3 +1,8 @@ | |||
1 | 20071231 | ||
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 | |||
1 | 20071229 | 6 | 20071229 |
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 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.387 $) | 18 | AC_REVISION($Revision: 1.388 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_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 | ||
53 | static long | 54 | static long |
54 | get_arg_max(void) | 55 | get_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_ |