2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

608. [func] dnssec-signzone now adds a comment to the zone

with the time the file was signed.
This commit is contained in:
Brian Wellington
2000-12-11 22:55:25 +00:00
parent 43b9c76f5e
commit 253f774e35
2 changed files with 14 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
608. [func] dnssec-signzone now adds a comment to the zone
with the time the file was signed.
607. [bug] nsupdate would fail if it encountered a CNAME or
DNAME in a response to an SOA query. [RT #515]

View File

@@ -17,11 +17,12 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-signzone.c,v 1.119 2000/12/11 19:15:50 bwelling Exp $ */
/* $Id: dnssec-signzone.c,v 1.120 2000/12/11 22:55:25 bwelling Exp $ */
#include <config.h>
#include <stdlib.h>
#include <time.h>
#include <isc/app.h>
#include <isc/commandline.h>
@@ -1417,6 +1418,14 @@ loadzonepubkeys(dns_db_t *db) {
dns_db_closeversion(db, &currentversion, ISC_FALSE);
}
static void
print_time(FILE *fp) {
time_t currenttime;
currenttime = time(NULL);
fprintf(fp, "; File written on %s", ctime(&currenttime));
}
static void
usage(void) {
fprintf(stderr, "Usage:\n");
@@ -1688,6 +1697,7 @@ main(int argc, char *argv[]) {
if (result != ISC_R_SUCCESS)
fatal("failed to open output file %s: %s", output,
isc_result_totext(result));
print_time(fp);
result = isc_taskmgr_create(mctx, ntasks, 0, &taskmgr);
if (result != ISC_R_SUCCESS)