[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r1645 - trunk/enforcer/ksm

Sion Lloyd sion at nominet.org.uk
Mon Aug 17 11:38:26 CEST 2009


Author: sion
Date: 2009-08-17 11:38:26 +0200 (Mon, 17 Aug 2009)
New Revision: 1645

Modified:
   trunk/enforcer/ksm/ksm_list.c
Log:
"ksmutil list rollovers" now only lists rollovers for currently active keys, not historical ones too. (Pivotal story 1109085.)


Modified: trunk/enforcer/ksm/ksm_list.c
===================================================================
--- trunk/enforcer/ksm/ksm_list.c	2009-08-17 09:00:15 UTC (rev 1644)
+++ trunk/enforcer/ksm/ksm_list.c	2009-08-17 09:38:26 UTC (rev 1645)
@@ -305,7 +305,7 @@
     char*       temp_date = NULL;   /* place to store date returned */
 
     /* Select rows */
-    StrAppend(&sql, "select z.name, k.keytype, k.retire from zones z, KEYDATA_VIEW k where z.id = k.zone_id and active is not null ");
+    StrAppend(&sql, "select z.name, k.keytype, k.retire from zones z, KEYDATA_VIEW k where z.id = k.zone_id and k.state = 4 ");
     if (zone_id != -1) {
         StrAppend(&sql, "and zone_id = ");
         snprintf(stringval, KSM_INT_STR_SIZE, "%d", zone_id);




More information about the Opendnssec-commits mailing list