mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
check security-related incompatible args (ITS#6849)
This commit is contained in:
parent
faa070d446
commit
d7a8eff546
@ -1197,6 +1197,12 @@ tool_args( int argc, char **argv )
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if ( ( pw_file || want_bindpw ) && !BER_BVISNULL( &passwd ) ) {
|
||||
fprintf( stderr, "%s: -%c incompatible with -w\n",
|
||||
prog, ( pw_file ? 'y' : 'W' ) );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user