From 1f6369f9843c98b4e36c2e0f1deff6a5f3393110 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 15 Jan 2004 21:27:32 +0000 Subject: [PATCH] ITS#2922 disable argument globbing under Cygwin and MinGW. --- clients/tools/ldapsearch.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 87a9a97e5c..187e168f98 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -79,6 +79,12 @@ static int sizelimit = -1; static char *def_tmpdir; static char *def_urlpre; +#if defined(__CYGWIN__) || defined(__MINGW32__) +/* Turn off commandline globbing, otherwise you cannot search for + * attribute '*' + */ +int _CRT_glob = 0; +#endif void usage( void )