From: Howard Chu Date: Thu, 15 Jan 2004 21:27:32 +0000 (+0000) Subject: ITS#2922 disable argument globbing under Cygwin and MinGW. X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f6369f9843c98b4e36c2e0f1deff6a5f3393110;p=openldap ITS#2922 disable argument globbing under Cygwin and MinGW. --- 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 )