]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix up merge
authorMark Andrews <marka@isc.org>
Thu, 4 Jun 2009 03:11:31 +0000 (03:11 +0000)
committerMark Andrews <marka@isc.org>
Thu, 4 Jun 2009 03:11:31 +0000 (03:11 +0000)
bin/dnssec/dnssec-signzone.c

index 432e940225ace455d2c416cbfe502a782dd5998f..ec57a812f22af5b4230b53a8662636461eb2e65f 100644 (file)
@@ -29,7 +29,7 @@
  * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dnssec-signzone.c,v 1.209.12.5 2009/06/04 02:56:14 tbox Exp $ */
+/* $Id: dnssec-signzone.c,v 1.209.12.6 2009/06/04 03:11:31 marka Exp $ */
 
 /*! \file */
 
@@ -2916,7 +2916,7 @@ main(int argc, char *argv[]) {
        unsigned char saltbuf[255];
        hashlist_t hashlist;
 
-#define CMDLINE_FLAGS "3:aAc:d:e:f:ghH:i:I:j:k:l:m:n:N:o:O:pr:s:StUv:z"
+#define CMDLINE_FLAGS "3:aAc:d:e:f:ghH:i:I:j:k:l:m:n:N:o:O:pPr:s:StUv:z"
 
        /*
         * Process memory debugging argument first.
@@ -3003,19 +3003,19 @@ main(int argc, char *argv[]) {
                        generateds = ISC_TRUE;
                        break;
 
-               case '?':
-                       if (isc_commandline_option != '?')
-                               fprintf(stderr, "%s: invalid argument -%c\n",
-                                       program, isc_commandline_option);
+               case 'H':
+                       iterations = strtoul(isc_commandline_argument,
+                                            &endp, 0);
+                       if (*endp != '\0')
+                               fatal("iterations must be numeric");
+                       if (iterations > 0xffffU)
+                               fatal("iterations too big");
+                       break;
+
                case 'h':
                        usage();
                        break;
 
-               default:
-                       fprintf(stderr, "%s: unhandled option -%c\n",
-                               program, isc_commandline_option);
-                       exit(1);
-
                case 'i':
                        endp = NULL;
                        cycle = strtol(isc_commandline_argument, &endp, 0);