From 1ed9b5c3bca2a5f536d68956c959aa4ba21f2c90 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 21 Nov 2007 15:40:09 +0000 Subject: [PATCH] Fix, truncate should not be valid for slapadd, should be for slapindex. --- servers/slapd/slapcommon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5