]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/main.c
op->o_conn->c_sb may be 0 for internal operations
[openldap] / servers / slapd / main.c
index acf1964f7f9ded10f61bec5ba729d05407fbd5ce..d04e1ef4d9f85c511e7880b3b53f2845279f280c 100644 (file)
@@ -344,7 +344,8 @@ usage( char *name )
 #if defined(HAVE_SETUID) && defined(HAVE_SETGID)
                "\t-u user\t\tUser (id or name) to run as\n"
 #endif
-               "\t-V\t\tprint version info (-VV only)\n"
+               "\t-V\t\tprint version info (-VV exit afterwards, -VVV print\n"
+               "\t\t\tinfo about static overlays and backends)\n"
     );
 }
 
@@ -682,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;