From: Pierangelo Masarati Date: Tue, 20 Apr 2004 09:17:26 +0000 (+0000) Subject: improve slapacl option sanity checks X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~466 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a07d8ee0b7676c7c156d3f494e643dd00aae581b;p=openldap improve slapacl option sanity checks --- diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index f3c73d93a7..a42b652890 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -297,6 +297,9 @@ slap_tool_init( break; case SLAPACL: + if ( argc == optind ) { + usage( tool, progname ); + } if ( !BER_BVISNULL( &authcDN ) && !BER_BVISNULL( &authcID ) ) { usage( tool, progname ); }