From: Howard Chu Date: Wed, 21 Nov 2007 15:40:09 +0000 (+0000) Subject: Fix, truncate should not be valid for slapadd, should be for slapindex. X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~400 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ed9b5c3bca2a5f536d68956c959aa4ba21f2c90;p=openldap Fix, truncate should not be valid for slapadd, should be for slapindex. --- diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index 1a6a043ccf..26e3601178 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -88,7 +88,7 @@ usage( int tool, const char *progname ) break; case SLAPINDEX: - options = " [-c]\n\t[-g] [-n databasenumber | -b suffix] [attr ...] [-q]\n"; + options = " [-c]\n\t[-g] [-n databasenumber | -b suffix] [attr ...] [-q] [-t]\n"; break; case SLAPTEST: @@ -241,7 +241,7 @@ slap_tool_init( switch( tool ) { case SLAPADD: - options = "b:cd:f:F:gj:l:n:o:qsS:tuvw"; + options = "b:cd:f:F:gj:l:n:o:qsS:uvw"; break; case SLAPCAT: @@ -265,7 +265,7 @@ slap_tool_init( break; case SLAPINDEX: - options = "b:cd:f:F:gn:o:qv"; + options = "b:cd:f:F:gn:o:qtv"; mode |= SLAP_TOOL_READMAIN; break;