mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
More from jon@symas.com - argv[0] comparison must exclude EXEEXT.
This commit is contained in:
parent
bc66d649b3
commit
331a7bd1c5
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue