ITS#6754: Fail if there are unrecognized command-line arguments.

This commit is contained in:
Rein Tollevik 2010-12-30 19:45:08 +00:00
parent 8018924efd
commit a1a5affeb0

View file

@ -683,6 +683,9 @@ unhandled_option:;
}
}
if ( optind != argc )
goto unhandled_option;
ber_set_option(NULL, LBER_OPT_DEBUG_LEVEL, &slap_debug);
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &slap_debug);
ldif_debug = slap_debug;