]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix to print error from unbound-anchor for writing to the key
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Aug 2021 14:06:02 +0000 (16:06 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Aug 2021 14:06:02 +0000 (16:06 +0200)
  file, also when not verbose.

doc/Changelog
smallapp/unbound-anchor.c

index 879301387d343f6b1e87230ecf739b65d46d5ed8..8deb1c73f2ad8494b4c1a9cd4adf17fa7d65386d 100644 (file)
@@ -11,6 +11,8 @@
        - For #519: yacc and lex. And fix python bindings, and test program
          unbound-dnstap-socket.
        - For #519: fix comments for doxygen.
+       - Fix to print error from unbound-anchor for writing to the key
+         file, also when not verbose.
 
 5 August 2021: Wouter
        - Tag for 1.13.2rc1 release.
index 3e6fc6e6fca83539625ede934925e7fa24e8813a..3bc25a10caafba983f378b3d1abeee7a6da20d2b 100644 (file)
@@ -2044,13 +2044,13 @@ write_builtin_anchor(const char* file)
        const char* builtin_root_anchor = get_builtin_ds();
        FILE* out = fopen(file, "w");
        if(!out) {
-               if(verb) printf("%s: %s\n", file, strerror(errno));
-               if(verb) printf("  could not write builtin anchor\n");
+               printf("could not write builtin anchor, to file %s: %s\n",
+                       file, strerror(errno));
                return;
        }
        if(!fwrite(builtin_root_anchor, strlen(builtin_root_anchor), 1, out)) {
-               if(verb) printf("%s: %s\n", file, strerror(errno));
-               if(verb) printf("  could not complete write builtin anchor\n");
+               printf("could not complete write builtin anchor, to file %s: %s\n",
+                       file, strerror(errno));
        }
        fclose(out);
 }