[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4165 - trunk/OpenDNSSEC/enforcer/utils

Sion Lloyd sion at nominet.org.uk
Wed Nov 3 12:04:39 CET 2010


Author: sion
Date: 2010-11-03 12:04:39 +0100 (Wed, 03 Nov 2010)
New Revision: 4165

Modified:
   trunk/OpenDNSSEC/enforcer/utils/ksmutil.c
Log:
Make sure that we put zero into the capacity column of the securitymodules table for unlimited, pivotal story 6015977.


Modified: trunk/OpenDNSSEC/enforcer/utils/ksmutil.c
===================================================================
--- trunk/OpenDNSSEC/enforcer/utils/ksmutil.c	2010-11-03 10:41:55 UTC (rev 4164)
+++ trunk/OpenDNSSEC/enforcer/utils/ksmutil.c	2010-11-03 11:04:39 UTC (rev 4165)
@@ -3972,8 +3972,16 @@
                 printf("Repository %s found\n", repo_name);
                 if (strlen(repo_capacity) == 0) {
                     printf("No Maximum Capacity set.\n");
+                    /*
+                     * We have all the information, update/insert this repository
+                     */
+                    status = KsmImportRepository(repo_name, "0", require_backup);
                 } else {
                     printf("Capacity set to %s.\n", repo_capacity);
+                    /*
+                     * We have all the information, update/insert this repository
+                     */
+                    status = KsmImportRepository(repo_name, repo_capacity, require_backup);
                 }
                 if (require_backup == 0) {
                     printf("RequireBackup NOT set; please make sure that you know the potential problems of using keys which are not recoverable\n");
@@ -3981,10 +3989,6 @@
                     printf("RequireBackup set.\n");
                 }
 
-                 /*
-                 * We have all the information, update/insert this repository
-                 */
-                status = KsmImportRepository(repo_name, repo_capacity, require_backup);
                 if (status != 0) {
                     printf("Error Importing Repository %s", repo_name);
                     /* Don't return? try to parse the rest of the zones? */




More information about the Opendnssec-commits mailing list