]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2615. [port] win32: 'named -v' should automatically be executed
authorMark Andrews <marka@isc.org>
Tue, 23 Jun 2009 07:43:48 +0000 (07:43 +0000)
committerMark Andrews <marka@isc.org>
Tue, 23 Jun 2009 07:43:48 +0000 (07:43 +0000)
                        in the foreground. [RT #19844]

bin/named/win32/ntservice.c

index 74570cf2e6f44fe566804bd731ce0c5a50cc0d40..a0da37f7192c3e7c9f46115e6edbca6e074b7e42 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: ntservice.c,v 1.12 2007/06/19 23:46:59 tbox Exp $ */
+/* $Id: ntservice.c,v 1.13 2009/06/23 07:43:48 marka Exp $ */
 
 #include <config.h>
 #include <stdio.h>
@@ -65,9 +65,12 @@ int bindmain()
         */
        GetArgs(&argc, &argv, &envp);
 
-       /* Command line users should put -f in the options */
+       /* Command line users should put -f in the options. */
+       /* XXXMPA should use isc_commandline_parse() here. */
        while (argv[i]) {
-               if (!strcmp(argv[i], "-f") || !strcmp(argv[i], "-g")) {
+               if (!strcmp(argv[i], "-f") ||
+                   !strcmp(argv[i], "-g") ||
+                   !strcmp(argv[i], "-v")) {
                        foreground = TRUE;
                        break;
                }