+21 January 2014: Wouter
+ - Fix #547: no trustanchor written if filesystem full, fclose checked.
+
17 January 2014: Wouter
- Fix isprint() portability in sldns, uses unsigned int.
- iana portlist updated.
log_err("could not completely write: %s", fname);
return;
}
+ if(fclose(out) != 0) {
+ log_err("could not complete write: %s: %s",
+ fname, strerror(errno));
+ unlink(tempf);
+ return;
+ }
/* success; overwrite actual file */
- fclose(out);
verbose(VERB_ALGO, "autotrust: replaced %s", fname);
#ifdef UB_ON_WINDOWS
(void)unlink(fname); /* windows does not replace file with rename() */