--- Jonathan Nieder wrote: > gzclose_r (does not report I/O errors!)
Here’s half of the fix to that. gzread.c => gzread.c.new | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gzread.c b/gzread.c.new index 836c57c..5603eca 100644 --- a/gzread.c +++ b/gzread.c.new @@ -624,8 +624,10 @@ int ZEXPORT gzclose_r(file) free(state->in); } gz_error(state, Z_OK, NULL); - close(state->fd); - free(state); + if (close(state->fd)) { + free(state); + return -1; + } return Z_OK; } -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org