From a07d8ee0b7676c7c156d3f494e643dd00aae581b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 20 Apr 2004 09:17:26 +0000 Subject: [PATCH] improve slapacl option sanity checks --- servers/slapd/slapcommon.c | 3 +++ 1 file changed, 3 insertions(+) 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 ); } -- 2.39.5