Commit 253f774e authored by Brian Wellington's avatar Brian Wellington
Browse files

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

                       with the time the file was signed.
parent 43b9c76f
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]
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment