From: Ondřej Kuzník Date: Wed, 10 Dec 2025 09:49:28 +0000 (+0000) Subject: ITS#9577 Also exit when started with just -V X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=127b34eb0bc57b5bf58f7c7ca8208572b1088576;p=thirdparty%2Fopenldap.git ITS#9577 Also exit when started with just -V --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index 6a7c956e01..b596cb7a24 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -205,7 +205,7 @@ 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 exit afterwards, -VVV print\n" + "\t-V/-VV\t\tprint version info and exit, -VVV also print\n" "\t\t\tinfo about static overlays and backends)\n" ); } @@ -587,7 +587,7 @@ unhandled_option:; } } - if ( version > 1 ) goto stop; + goto stop; } #if defined(LDAP_DEBUG) && defined(LDAP_SYSLOG)