]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9577 Also exit when started with just -V master 815/head
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 10 Dec 2025 09:49:28 +0000 (09:49 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sat, 13 Dec 2025 00:22:53 +0000 (00:22 +0000)
servers/slapd/main.c

index 6a7c956e0157a192427bb9bc435b853e9c9c4249..b596cb7a2412273af90b7e7e7ab67ab2136c4d26 100644 (file)
@@ -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)