Commit 331a7bd1 authored by Howard Chu's avatar Howard Chu
Browse files

More from jon@symas.com - argv[0] comparison must exclude EXEEXT.

parent bc66d649
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment