if (!a.mainfile) PE("create .tmp for new main during compact");
r= ht_forall(&rw->logincore, addto_main, &a);
- if (r) { rc= cht_posixerr(ip, r, "error writing to new .main"
+ if (r) { rc= cht_posixerr(ip, errno, "error writing to new .main"
" during compact"); goto x_rc; }
r= putc('\n', a.mainfile);
* Do not adns_cancel in the middle of adns_forallqueries.
* strlen returns size_t, not int; fixed up everywhere relevant.
Closes #393970. (Bug exists only where int and ssize_t differ.)
+ * Use correct errno value for error writing to new .main during compact.
Portability fixes:
* Remove unecessary assertion of val<=0xffffffffUL where uint32_t val;