From: Kurt Zeilenga Date: Thu, 7 Sep 2000 01:15:52 +0000 (+0000) Subject: Fix -R processing X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2081 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d2c074a809231d26374e96121cba3c218248a5c;p=openldap Fix -R processing --- diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index b4beafab0b..80e15939b3 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -102,7 +102,9 @@ main( int argc, char **argv ) prog = (prog = strrchr(argv[0], *LDAP_DIRSEP)) == NULL ? argv[0] : prog + 1; - while (( i = getopt( argc, argv, "cf:r" "Cd:D:h:H:IkKMnO:p:P:QRU:vw:WxX:Y:Z" )) != EOF ) { + while (( i = getopt( argc, argv, "cf:r" + "Cd:D:h:H:IkKMnO:p:P:QR:U:vw:WxX:Y:Z" )) != EOF ) + { switch( i ) { /* Delete Specific Options */ case 'c': /* continuous operation mode */ diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index e6fedb1198..690bff7e40 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -159,7 +159,9 @@ main( int argc, char **argv ) authmethod = -1; version = -1; - while (( i = getopt( argc, argv, "acrf:F" "Cd:D:h:H:IkKMnO:p:P:QRU:vw:WxX:Y:Z" )) != EOF ) { + while (( i = getopt( argc, argv, "acrf:F" + "Cd:D:h:H:IkKMnO:p:P:QR:U:vw:WxX:Y:Z" )) != EOF ) + { switch( i ) { /* Modify Options */ case 'a': /* add */ diff --git a/clients/tools/ldapmodrdn.c b/clients/tools/ldapmodrdn.c index 066ebfd6dc..32ac8e0553 100644 --- a/clients/tools/ldapmodrdn.c +++ b/clients/tools/ldapmodrdn.c @@ -118,7 +118,9 @@ main(int argc, char **argv) prog = (prog = strrchr(argv[0], *LDAP_DIRSEP)) == NULL ? argv[0] : prog + 1; - while (( i = getopt( argc, argv, "cf:rs:" "Cd:D:h:H:IkKMnO:p:P:QRU:vw:WxX:Y:Z" )) != EOF ) { + while (( i = getopt( argc, argv, "cf:rs:" + "Cd:D:h:H:IkKMnO:p:P:QR:U:vw:WxX:Y:Z" )) != EOF ) + { switch( i ) { /* Modrdn Options */ case 'c': diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 1549ff7c1f..7928d4c05c 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -109,8 +109,8 @@ main( int argc, char *argv[] ) prog = (prog = strrchr(argv[0], *LDAP_DIRSEP)) == NULL ? argv[0] : prog + 1; - while( (i = getopt( argc, argv, - "Aa:Ss:" "Cd:D:h:H:InO:p:QRU:vw:WxX:Y:Z" )) != EOF ) + while( (i = getopt( argc, argv, "Aa:Ss:" + "Cd:D:h:H:InO:p:QR:U:vw:WxX:Y:Z" )) != EOF ) { switch (i) { /* Password Options */ diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 1636bcded6..21d15ec528 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -181,8 +181,8 @@ main( int argc, char **argv ) prog = (prog = strrchr(argv[0], *LDAP_DIRSEP)) == NULL ? argv[0] : prog + 1; - while (( i = getopt( argc, argv, - "Aa:b:f:Ll:S:s:T:tuV:z:" "Cd:D:h:H:IkKMnO:p:P:QRU:vw:WxX:Y:Z")) != EOF ) + while (( i = getopt( argc, argv, "Aa:b:f:Ll:S:s:T:tuV:z:" + "Cd:D:h:H:IkKMnO:p:P:QR:U:vw:WxX:Y:Z")) != EOF ) { switch( i ) { /* Search Options */