Remove 'h' and 'p' from options[] in client tools

The options -h and -p got removed from client tools in commit
66af4cfd5d. However, they were still
present in the options[] array in several client tools source files. So,
if one of those tools got executed with -h or -p followed by a value,
this lead to the error "unrecognized option -", without mentioning
which option was problematic. Removing 'h' and 'p' from options[] fixes
this.
This commit is contained in:
Thomas Daniels 2022-09-20 00:30:05 +02:00 committed by Quanah Gibson-Mount
parent e640ce282a
commit 1c18f31d1c
9 changed files with 9 additions and 9 deletions

View file

@ -104,7 +104,7 @@ static int docompare LDAP_P((
const char options[] = "z"
"Cd:D:e:h:H:IMnNO:o:p:P:QR:U:vVw:WxX:y:Y:Z";
"Cd:D:e:H:IMnNO:o:P:QR:U:vVw:WxX:y:Y:Z";
#ifdef LDAP_CONTROL_DONTUSECOPY
int dontUseCopy = 0;

View file

@ -82,7 +82,7 @@ usage( void )
const char options[] = "r"
"cd:D:e:f:h:H:IMnNO:o:p:P:QR:U:vVw:WxX:y:Y:z:Z";
"cd:D:e:f:H:IMnNO:o:P:QR:U:vVw:WxX:y:Y:z:Z";
int
handle_private_option( int i )

View file

@ -52,7 +52,7 @@ usage( void )
const char options[] = ""
"d:D:e:h:H:InNO:o:p:QR:U:vVw:WxX:y:Y:Z";
"d:D:e:H:InNO:o:QR:U:vVw:WxX:y:Y:Z";
int
handle_private_option( int i )

View file

@ -128,7 +128,7 @@ usage( void )
const char options[] = "aE:rS:"
"cd:D:e:f:h:H:i:IMnNO:o:p:P:QR:U:vVw:WxX:y:Y:Z";
"cd:D:e:f:H:i:IMnNO:o:P:QR:U:vVw:WxX:y:Y:Z";
int
handle_private_option( int i )

View file

@ -95,7 +95,7 @@ usage( void )
const char options[] = "rs:"
"cd:D:e:f:h:H:IMnNO:o:p:P:QR:U:vVw:WxX:y:Y:Z";
"cd:D:e:f:H:IMnNO:o:P:QR:U:vVw:WxX:y:Y:Z";
int
handle_private_option( int i )

View file

@ -83,7 +83,7 @@ usage( void )
const char options[] = "Ea:As:St:T:"
"d:D:e:h:H:InNO:o:p:QR:U:vVw:WxX:y:Y:Z";
"d:D:e:H:InNO:o:QR:U:vVw:WxX:y:Y:Z";
int
handle_private_option( int i )

View file

@ -363,7 +363,7 @@ parse_vlv(char *cvalue)
}
const char options[] = "a:Ab:cE:F:l:Ls:S:tT:uz:"
"Cd:D:e:f:h:H:IMnNO:o:p:P:QR:U:vVw:WxX:y:Y:Z";
"Cd:D:e:f:H:IMnNO:o:P:QR:U:vVw:WxX:y:Y:Z";
int
handle_private_option( int i )

View file

@ -86,7 +86,7 @@ usage( void )
const char options[] = "abE:"
"d:D:e:h:H:InNO:o:p:QR:U:vVw:WxX:y:Y:Z";
"d:D:e:H:InNO:o:QR:U:vVw:WxX:y:Y:Z";
int
handle_private_option( int i )

View file

@ -62,7 +62,7 @@ usage( void )
const char options[] = ""
"d:D:e:h:H:InNO:o:p:QR:U:vVw:WxX:y:Y:Z";
"d:D:e:H:InNO:o:QR:U:vVw:WxX:y:Y:Z";
int
handle_private_option( int i )