From: Howard Chu Date: Wed, 12 Dec 2001 00:26:42 +0000 (+0000) Subject: More from jon@symas.com - argv[0] comparison must exclude EXEEXT. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~656 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=331a7bd1c583deee332739d667a8b0082f28f734;p=openldap More from jon@symas.com - argv[0] comparison must exclude EXEEXT. --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 82390b7fdd..1c18b176a2 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -151,7 +151,8 @@ main( int argc, char **argv ) /* Print usage when no parameters */ if( argc < 2 ) usage( prog ); - ldapadd = ( strcmp( prog, "ldapadd" ) == 0 ); + /* strncmp instead of strcmp since NT binaries carry .exe extension */ + ldapadd = ( strncmp( prog, "ldapadd", 7 ) == 0 ); infile = NULL; not = verbose = want_bindpw = debug = manageDSAit = referrals = 0;