]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: exit with 0 on --version, like dnsdist and recursor do 13397/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 18 Oct 2023 19:25:46 +0000 (21:25 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 19 Oct 2023 08:16:18 +0000 (10:16 +0200)
pdns/auth-main.cc

index 559e1f29c358a6656b198e6a5b63bdbf0ce385f9..143fb2fb8d7b06ac28b4cdf8741a53ad97c2ee87 100644 (file)
@@ -1219,7 +1219,7 @@ int main(int argc, char** argv)
     if (::arg().mustDo("version")) {
       showProductVersion();
       showBuildConfiguration();
-      exit(99);
+      return 0;
     }
 
     if (::arg()["config-name"] != "")