mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 10:10:06 +00:00
[master] fix error reporting on fclose() failure [RT #46199]
This commit is contained in:
parent
c6a63672d1
commit
3f3b51e7af
@ -448,9 +448,9 @@ write_parent_set(const char *path, const char *inplace,
|
||||
fprintf(fp, "%s", (char *)r.base);
|
||||
isc_buffer_free(&buf);
|
||||
if (fclose(fp) == EOF) {
|
||||
result = ISC_R_FAILURE;
|
||||
int err = errno;
|
||||
isc_file_remove(tmpname);
|
||||
fatal("error writing to %s: %s", tmpname, strerror(result));
|
||||
fatal("error writing to %s: %s", tmpname, strerror(err));
|
||||
}
|
||||
|
||||
isc_time_set(&filetime, oldestsig.timesigned, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user